Table of Contents

Interface IMessageTemplate

Namespace
Kook
Assembly
Kook.Net.Core.dll

表示一个通用的消息模板实体。

public interface IMessageTemplate : IEntity<ulong>
Inherited Members

Properties

AuditStatus

获取消息模板的审核状态。

TemplateAuditStatus AuditStatus { get; }

Property Value

TemplateAuditStatus

Content

获取消息模板的内容。

string Content { get; }

Property Value

string

MessageType

获取消息模板的消息类型。

TemplateMessageType MessageType { get; }

Property Value

TemplateMessageType

TestChannelId

获取消息模板的测试频道 ID。

ulong? TestChannelId { get; }

Property Value

ulong?

TestData

获取消息模板的测试数据。

JsonElement? TestData { get; }

Property Value

JsonElement?

Title

获取消息模板的标题。

string Title { get; }

Property Value

string

Type

获取消息模板的类型。

TemplateType Type { get; }

Property Value

TemplateType

Methods

DeleteAsync(RequestOptions?)

删除此模板

Task DeleteAsync(RequestOptions? options = null)

Parameters

options RequestOptions

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

Returns

Task

一个表示异步删除操作的任务。

ModifyAsync(Action<MessageTemplateProperties>, RequestOptions?)

修改此模板

Task ModifyAsync(Action<MessageTemplateProperties> func, RequestOptions? options = null)

Parameters

func Action<MessageTemplateProperties>

一个包含修改模板属性的委托。

options RequestOptions

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

Returns

Task

一个表示异步修改操作的任务。

See Also