Class Group
- Namespace
- Twikit
- Assembly
- Twikit.dll
グループ DM。
public sealed class Group
- Inheritance
-
Group
- Inherited Members
Constructors
Group(Client, string, JsonObject)
public Group(Client client, string groupId, JsonObject data)
Parameters
clientClientgroupIdstringdataJsonObject
Properties
Id
グループの ID。
public string Id { get; }
Property Value
Members
現在の参加者。X は作成時に要求した全員を黙って入れないことがあるので、 全員入ったと仮定せずここを確認してください。
public List<User> Members { get; }
Property Value
Name
グループ名(未設定なら null)。
public string? Name { get; }
Property Value
Methods
AddMembersAsync(IList<string>)
メンバーを追加します。
public Task<HttpResponseMessage> AddMembersAsync(IList<string> userIds)
Parameters
Returns
ChangeNameAsync(string)
グループ名を変更します。
public Task<HttpResponseMessage> ChangeNameAsync(string name)
Parameters
namestring
Returns
GetHistoryAsync(string?)
グループの DM 履歴を取得します。
public Task<Result<GroupMessage>> GetHistoryAsync(string? maxId = null)
Parameters
maxIdstring
Returns
SendMessageAsync(string, string?, string?)
グループにメッセージを送ります。
public Task<GroupMessage> SendMessageAsync(string text, string? mediaId = null, string? replyTo = 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()