menu
light_mode dark_mode routine

Class RichContent code

命名空间
Another_Mirai_Native.Abstractions.Models.MessageItem
程序集
Another-Mirai-Native.Abstractions.dll

卡片消息片段。

public class RichContent : MessageItemBase
继承
RichContent
继承成员

构造函数

RichContent(RichContentType, string) code

卡片消息片段。

public RichContent(RichContentType richContentType, string content)

参数

richContentType RichContentType

卡片内容类型。

content string

卡片内容。

属性

Content code

卡片内容。

public string Content { get; set; }

属性值

string

MessageItemType code

获取或设置消息片段类型。

public override MessageItemType MessageItemType { get; set; }

属性值

MessageItemType

RichContentType code

卡片内容类型。

public RichContentType RichContentType { get; set; }

属性值

RichContentType

方法

ToString() code

返回当前消息片段的 CQ 码字符串表示。

public override string ToString()

返回值

string

CQ 码文本。