Table of Contents

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

IUser

Cards

获取此帖子评论中包含的所有卡片。

IReadOnlyCollection<ICard> Cards { get; }

Property Value

IReadOnlyCollection<ICard>

Content

获取此帖子回复的内容。

string Content { get; }

Property Value

string

Remarks

此属性为卡片内容的原始代码。

IsEdited

获取此帖子回复是否已被编辑。

bool IsEdited { get; }

Property Value

bool

MentionedChannelIds

获取此帖子回复中提及的所有频道。

IReadOnlyCollection<ulong> MentionedChannelIds { get; }

Property Value

IReadOnlyCollection<ulong>

MentionedEveryone

获取此帖子回复是否提及了全体成员。

bool MentionedEveryone { get; }

Property Value

bool

MentionedHere

获取此帖子回复是否提及了在线成员。

bool MentionedHere { get; }

Property Value

bool

MentionedRoleIds

获取此帖子回复中提及的所有角色的 ID。

IReadOnlyCollection<uint> MentionedRoleIds { get; }

Property Value

IReadOnlyCollection<uint>

MentionedUserIds

获取此帖子回复中提及的所有用户的 ID。

IReadOnlyCollection<ulong> MentionedUserIds { get; }

Property Value

IReadOnlyCollection<ulong>

Post

获取此帖子回复的回复所在的帖子评论。

IThreadPost Post { get; }

Property Value

IThreadPost

Thread

获取此帖子回复的回复所在的帖子。

IThread Thread { get; }

Property Value

IThread

Timestamp

获取此帖子的发布时间。

DateTimeOffset Timestamp { get; }

Property Value

DateTimeOffset

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>

一个表示新创建帖子评论的回复操作的异步任务。