消息段:一段消息的最小单元,如文本、@、图片
Implements
Constructors
Constructor
new MessageSegmentImpl(
type,data,attachment?):MessageSegmentImpl
Parameters
type
string
data
Record<string, unknown>
attachment?
Returns
MessageSegmentImpl
Properties
attachment
readonlyattachment:Attachment|undefined
Implementation of
data
readonlydata:Readonly<Record<string,unknown>>
Implementation of
type
readonlytype:string
Implementation of
Methods
isText()
isText():
boolean
Returns
boolean
Implementation of
toString()
toString():
string
Returns
string
