KookMessages

提供 KOOK 组件中一些会用到的信息。

Author

ForteScarlet

Properties

Link copied to clipboard

当at(mention)的目标为频道时。用于使用 KMarkdown 类型发送的时候。

Link copied to clipboard
const val AT_TYPE_ROLE: String

当at(mention)的目标为角色时,At.type 所使用的值。

Link copied to clipboard
const val AT_TYPE_USER: String

当at(mention)的目标为用户时,At.type 所使用的值。AT_TYPE_USER 也是 At.type 的默认值。

Functions

Link copied to clipboard

构建一个 at(mention) 频道的 At 消息对象。

Link copied to clipboard
fun atRole(id: ID): At

构建一个 at(mention) 整个角色的 At 消息对象。

Link copied to clipboard
fun atUser(id: ID): At

构建一个 at(mention) 用户的 At 消息对象。