Class RichContent code
- 程序集
- Another-Mirai-Native.Abstractions.dll
卡片消息片段。
public class RichContent : MessageItemBase
- 继承
-
RichContent
- 继承成员
构造函数
RichContent(RichContentType, string) code
卡片消息片段。
public RichContent(RichContentType richContentType, string content)
参数
richContentTypeRichContentType卡片内容类型。
contentstring卡片内容。
属性
Content code
卡片内容。
public string Content { get; set; }
属性值
MessageItemType code
获取或设置消息片段类型。
public override MessageItemType MessageItemType { get; set; }
属性值
RichContentType code
卡片内容类型。
public RichContentType RichContentType { get; set; }
属性值
方法
ToString() code
返回当前消息片段的 CQ 码字符串表示。
public override string ToString()
返回值
- string
CQ 码文本。