Class RestThreadReply
表示一个基于 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
Cards
获取此帖子评论中包含的所有卡片。
public IReadOnlyCollection<ICard> Cards { get; }
Property Value
Content
获取此帖子回复的内容。
public string Content { get; }
Property Value
Remarks
此属性为卡片内容的原始代码。
IsEdited
获取此帖子回复是否已被编辑。
public bool IsEdited { get; }
Property Value
MentionedChannelIds
获取此帖子回复中提及的所有频道。
public IReadOnlyCollection<ulong> MentionedChannelIds { get; }
Property Value
MentionedEveryone
获取此帖子回复是否提及了全体成员。
public bool MentionedEveryone { get; }
Property Value
MentionedHere
获取此帖子回复是否提及了在线成员。
public bool MentionedHere { get; }
Property Value
MentionedRoleIds
获取此帖子回复中提及的所有角色的 ID。
public IReadOnlyCollection<uint> MentionedRoleIds { get; }
Property Value
MentionedUserIds
获取此帖子回复中提及的所有用户的 ID。
public IReadOnlyCollection<ulong> MentionedUserIds { get; }
Property Value
MentionedUsers
获取此帖子中提及的所有用户。
public IReadOnlyCollection<RestUser> MentionedUsers { get; }
Property Value
Post
获取此帖子回复的回复所在的帖子评论。
public IThreadPost Post { get; }
Property Value
Thread
获取此帖子回复的回复所在的帖子。
public IThread Thread { get; }
Property Value
Timestamp
获取此帖子的发布时间。
public DateTimeOffset Timestamp { get; }
Property Value
Methods
DeleteAsync(RequestOptions?)
删除此实体对象及其所有子实体对象。
public Task DeleteAsync(RequestOptions? options = null)
Parameters
options
RequestOptions发送请求时要使用的选项。
Returns
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>
一个表示新创建帖子评论的回复操作的异步任务。