Table of Contents

Class Community

Namespace
Twikit
Assembly
Twikit.dll

コミュニティ。

public sealed class Community : IEquatable<Community>
Inheritance
Community
Implements
Inherited Members

Constructors

Community(Client, JsonObject)

public Community(Client client, JsonObject data)

Parameters

client Client
data JsonObject

Exceptions

NotFoundException

X が解決できなかったコミュニティ。

Properties

Admin

管理者。

public User? Admin { get; }

Property Value

User

Banner

バナー情報。

public JsonObject? Banner { get; }

Property Value

JsonObject

CreatedAt

作成時刻。

public long? CreatedAt { get; }

Property Value

long?

Creator

作成者(完全なユーザー情報がある場合)。

public User? Creator { get; }

Property Value

User

CreatorInfo

作成者(ID とスクリーンネームだけの場合)。

public CommunityCreator? CreatorInfo { get; }

Property Value

CommunityCreator

Description

説明。

public string? Description { get; }

Property Value

string

Id

コミュニティの ID。

public string Id { get; }

Property Value

string

InvitesPolicy

招待ポリシー。

public string? InvitesPolicy { get; }

Property Value

string

IsMember

ログイン中のユーザーがメンバーか。

public bool IsMember { get; }

Property Value

bool

IsNsfw

NSFW か。

public bool IsNsfw { get; }

Property Value

bool

IsPinned

ピン留めされているか。

public bool IsPinned { get; }

Property Value

bool

JoinPolicy

参加ポリシー。

public string? JoinPolicy { get; }

Property Value

string

MemberCount

メンバー数。

public int MemberCount { get; }

Property Value

int

MembersFacepileResults

メンバーのプロフィール画像 URL。

public List<string?> MembersFacepileResults { get; }

Property Value

List<string>

Name

名前。

public string? Name { get; }

Property Value

string

Role

ログイン中のユーザーの役割。

public string? Role { get; }

Property Value

string

Rules

ルール(無ければ null)。

public List<CommunityRule>? Rules { get; }

Property Value

List<CommunityRule>

Methods

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Equals(Community?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(Community? other)

Parameters

other Community

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

GetMembersAsync(int, string?)

メンバーを取得します。

public Task<Result<CommunityMember>> GetMembersAsync(int count = 20, string? cursor = null)

Parameters

count int
cursor string

Returns

Task<Result<CommunityMember>>

GetModeratorsAsync(int, string?)

モデレーターを取得します。

public Task<Result<CommunityMember>> GetModeratorsAsync(int count = 20, string? cursor = null)

Parameters

count int
cursor string

Returns

Task<Result<CommunityMember>>

GetTweetsAsync(string, int, string?)

コミュニティのツイートを取得します。

public Task<Result<Tweet>> GetTweetsAsync(string tweetType, int count = 40, string? cursor = null)

Parameters

tweetType string

'Top'、'Latest'、'Media' のいずれか。

count int

取得する件数。

cursor string

ページ送り用カーソル。

Returns

Task<Result<Tweet>>

JoinAsync()

コミュニティに参加します。

public Task<Community> JoinAsync()

Returns

Task<Community>

LeaveAsync()

コミュニティから退出します。

public Task<Community> LeaveAsync()

Returns

Task<Community>

RequestToJoinAsync(string?)

参加をリクエストします。

public Task<Community> RequestToJoinAsync(string? answer = null)

Parameters

answer string

Returns

Task<Community>

SearchTweetAsync(string, int, string?)

コミュニティ内のツイートを検索します。

public Task<Result<Tweet>> SearchTweetAsync(string query, int count = 20, string? cursor = null)

Parameters

query string
count int
cursor string

Returns

Task<Result<Tweet>>

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

UpdateAsync()

最新の情報で更新します。

public Task UpdateAsync()

Returns

Task