Table of Contents

Class RestThreadReply

Namespace
Kook.Rest
Assembly
Kook.Net.Rest.dll

表示一个基于 REST 的帖子评论。

public class RestThreadReply : RestEntity<ulong>, IThreadReply, IEntity<ulong>, IDeletable
Inheritance
RestThreadReply
Implements
Inherited Members
Extension Methods

Properties

Author

获取此帖子的作者。

public IUser Author { get; }

Property Value

IUser

Cards

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

public IReadOnlyCollection<ICard> Cards { get; }

Property Value

IReadOnlyCollection<ICard>

Content

获取此帖子回复的内容。

public string Content { get; }

Property Value

string

Remarks

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

IsEdited

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

public bool IsEdited { get; }

Property Value

bool

MentionedChannelIds

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

public IReadOnlyCollection<ulong> MentionedChannelIds { get; }

Property Value

IReadOnlyCollection<ulong>

MentionedEveryone

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

public bool MentionedEveryone { get; }

Property Value

bool

MentionedHere

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

public bool MentionedHere { get; }

Property Value

bool

MentionedRoleIds

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

public IReadOnlyCollection<uint> MentionedRoleIds { get; }

Property Value

IReadOnlyCollection<uint>

MentionedUserIds

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

public IReadOnlyCollection<ulong> MentionedUserIds { get; }

Property Value

IReadOnlyCollection<ulong>

MentionedUsers

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

public IReadOnlyCollection<RestUser> MentionedUsers { get; }

Property Value

IReadOnlyCollection<RestUser>

Post

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

public IThreadPost Post { get; }

Property Value

IThreadPost

Thread

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

public IThread Thread { get; }

Property Value

IThread

Timestamp

获取此帖子的发布时间。

public DateTimeOffset Timestamp { get; }

Property Value

DateTimeOffset

Methods

DeleteAsync(RequestOptions?)

删除此实体对象及其所有子实体对象。

public Task DeleteAsync(RequestOptions? options = null)

Parameters

options RequestOptions

发送请求时要使用的选项。

Returns

Task

ReplyAsync(ICard, RequestOptions?)

在此帖子回复所属的帖子评论中回复此帖子回复。

public Task<RestThreadReply> ReplyAsync(ICard card, RequestOptions? options = null)

Parameters

card ICard

要发布的卡片内容。

options RequestOptions

发送请求时要使用的选项。

Returns

Task<RestThreadReply>

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

Remarks

卡片内仅允许包含文本内容。

ReplyAsync(IEnumerable<ICard>, RequestOptions?)

在此帖子回复所属的帖子评论中回复此帖子回复。

public Task<RestThreadReply> ReplyAsync(IEnumerable<ICard> cards, RequestOptions? options = null)

Parameters

cards IEnumerable<ICard>

要发布的卡片内容。

options RequestOptions

发送请求时要使用的选项。

Returns

Task<RestThreadReply>

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

Remarks

卡片内仅允许包含文本内容。

ReplyAsync(string, bool, RequestOptions?)

在此帖子回复所属的帖子评论中回复此帖子回复。

public Task<RestThreadReply> ReplyAsync(string content, bool isKMarkdown = false, RequestOptions? options = null)

Parameters

content string

要发布的文本内容。

isKMarkdown bool

是否为 KMarkdown 格式。

options RequestOptions

发送请求时要使用的选项。

Returns

Task<RestThreadReply>

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