Skip to content

Interface: RichTextContentNode ​

富文本内容节点。

Properties ​

attributes? ​

optional attributes: object

属性。

at? ​

optional at: string

@ 的对象。

格式:

  • 用户:${@!<用户ID>},如 ${@!477511007129165824}。
  • 身份组:${@&<角色ID>},如 ${@&483266628902318082}。
  • 全体成员:${@&<服务器ID>},如 ${@&481087610740391936}。

bold? ​

optional bold: boolean

粗体。

italic? ​

optional italic: boolean

斜体。

optional link: string

链接地址。

strike? ​

optional strike: boolean

删除线。

underline? ​

optional underline: boolean

下划线。

Defined in ​

src/rich-text.ts:23


insert ​

insert: string | RichTextImageContent

内容。

Defined in ​

src/rich-text.ts:21

Released under the MIT License.