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
clientClientdataJsonObject
Exceptions
- NotFoundException
X が解決できなかったコミュニティ。
Properties
Admin
管理者。
public User? Admin { get; }
Property Value
Banner
バナー情報。
public JsonObject? Banner { get; }
Property Value
CreatedAt
作成時刻。
public long? CreatedAt { get; }
Property Value
- long?
Creator
作成者(完全なユーザー情報がある場合)。
public User? Creator { get; }
Property Value
CreatorInfo
作成者(ID とスクリーンネームだけの場合)。
public CommunityCreator? CreatorInfo { get; }
Property Value
Description
説明。
public string? Description { get; }
Property Value
Id
コミュニティの ID。
public string Id { get; }
Property Value
InvitesPolicy
招待ポリシー。
public string? InvitesPolicy { get; }
Property Value
IsMember
ログイン中のユーザーがメンバーか。
public bool IsMember { get; }
Property Value
IsNsfw
NSFW か。
public bool IsNsfw { get; }
Property Value
IsPinned
ピン留めされているか。
public bool IsPinned { get; }
Property Value
JoinPolicy
参加ポリシー。
public string? JoinPolicy { get; }
Property Value
MemberCount
メンバー数。
public int MemberCount { get; }
Property Value
MembersFacepileResults
メンバーのプロフィール画像 URL。
public List<string?> MembersFacepileResults { get; }
Property Value
Name
名前。
public string? Name { get; }
Property Value
Role
ログイン中のユーザーの役割。
public string? Role { get; }
Property Value
Rules
ルール(無ければ null)。
public List<CommunityRule>? Rules { get; }
Property Value
Methods
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
Equals(Community?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Community? other)
Parameters
otherCommunityAn object to compare with this object.
Returns
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
Returns
GetModeratorsAsync(int, string?)
モデレーターを取得します。
public Task<Result<CommunityMember>> GetModeratorsAsync(int count = 20, string? cursor = null)
Parameters
Returns
GetTweetsAsync(string, int, string?)
コミュニティのツイートを取得します。
public Task<Result<Tweet>> GetTweetsAsync(string tweetType, int count = 40, string? cursor = null)
Parameters
Returns
JoinAsync()
コミュニティに参加します。
public Task<Community> JoinAsync()
Returns
LeaveAsync()
コミュニティから退出します。
public Task<Community> LeaveAsync()
Returns
RequestToJoinAsync(string?)
参加をリクエストします。
public Task<Community> RequestToJoinAsync(string? answer = null)
Parameters
answerstring
Returns
SearchTweetAsync(string, int, string?)
コミュニティ内のツイートを検索します。
public Task<Result<Tweet>> SearchTweetAsync(string query, int count = 20, string? cursor = null)
Parameters
Returns
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()