Class Record code
- 程序集
- Another-Mirai-Native.Abstractions.dll
语音消息片段。
public class Record : MessageItemBase
- 继承
-
Record
- 继承成员
构造函数
Record(string, string) code
初始化 Record。filePath 与 hash 只能二选一,并且最少传递一个。若两个都被传递,则优先使用 filePath。
public Record(string filePath = "", string hash = "")
参数
属性
FilePath code
语音文件路径。
public string FilePath { get; set; }
属性值
Hash code
语音哈希。
public string Hash { get; set; }
属性值
MessageItemType code
获取或设置消息片段类型。
public override MessageItemType MessageItemType { get; set; }
属性值
方法
ToString() code
返回当前消息片段的 CQ 码字符串表示。
public override string ToString()
返回值
- string
CQ 码文本。