Interface IThreadReply
- Namespace
- Kook
- Assembly
- Kook.Net.Core.dll
表示一个帖子评论内的通用的帖子回复。
public interface IThreadReply : IEntity<ulong>, IDeletable
- Inherited Members
- Extension Methods
Properties
Author
获取此帖子回复的作者。
IUser Author { get; }
Property Value
Cards
获取此帖子评论中包含的所有卡片。
IReadOnlyCollection<ICard> Cards { get; }
Property Value
Content
获取此帖子回复的内容。
string Content { get; }
Property Value
Remarks
此属性为卡片内容的原始代码。
IsEdited
获取此帖子回复是否已被编辑。
bool IsEdited { get; }
Property Value
MentionedChannelIds
获取此帖子回复中提及的所有频道。
IReadOnlyCollection<ulong> MentionedChannelIds { get; }
Property Value
MentionedEveryone
获取此帖子回复是否提及了全体成员。
bool MentionedEveryone { get; }
Property Value
MentionedHere
获取此帖子回复是否提及了在线成员。
bool MentionedHere { get; }
Property Value
MentionedRoleIds
获取此帖子回复中提及的所有角色的 ID。
IReadOnlyCollection<uint> MentionedRoleIds { get; }
Property Value
MentionedUserIds
获取此帖子回复中提及的所有用户的 ID。
IReadOnlyCollection<ulong> MentionedUserIds { get; }
Property Value
Post
获取此帖子回复的回复所在的帖子评论。
IThreadPost Post { get; }
Property Value
Thread
获取此帖子回复的回复所在的帖子。
IThread Thread { get; }
Property Value
Timestamp
获取此帖子的发布时间。
DateTimeOffset Timestamp { get; }
Property Value
Methods
ReplyAsync(ICard, RequestOptions?)
在此帖子回复所属的帖子评论中回复此帖子回复。
Task<IThreadReply> ReplyAsync(ICard card, RequestOptions? options = null)
Parameters
card
ICard要发布的卡片内容。
options
RequestOptions发送请求时要使用的选项。
Returns
- Task<IThreadReply>
一个表示新创建帖子评论的回复操作的异步任务。
Remarks
卡片内仅允许包含文本内容。
ReplyAsync(IEnumerable<ICard>, RequestOptions?)
在此帖子回复所属的帖子评论中回复此帖子回复。
Task<IThreadReply> ReplyAsync(IEnumerable<ICard> cards, RequestOptions? options = null)
Parameters
cards
IEnumerable<ICard>要发布的卡片内容。
options
RequestOptions发送请求时要使用的选项。
Returns
- Task<IThreadReply>
一个表示新创建帖子评论的回复操作的异步任务。
Remarks
卡片内仅允许包含文本内容。
ReplyAsync(string, bool, RequestOptions?)
在此帖子回复所属的帖子评论中回复此帖子回复。
Task<IThreadReply> ReplyAsync(string content, bool isKMarkdown = false, RequestOptions? options = null)
Parameters
content
string要发布的文本内容。
isKMarkdown
bool是否为 KMarkdown 格式。
options
RequestOptions发送请求时要使用的选项。
Returns
- Task<IThreadReply>
一个表示新创建帖子评论的回复操作的异步任务。