TextExtra

@SerialName(value = "text")
sealed class TextExtra : EventExtra(source)

文字频道消息 extra

type 非系统消息(255)时

当此事件的频道类型 Event.channelTypeEvent.ChannelType.PERSON 时,例如 guildId 等频道才有的属性可能会使用空内容填充。

See also

Inheritors

Constructors

Link copied to clipboard
protected constructor()

Properties

Link copied to clipboard
abstract val author: SimpleUser

用户信息

Link copied to clipboard
abstract val channelName: String?

频道名

Link copied to clipboard
abstract val guildId: String?

服务器 id

Link copied to clipboard
abstract val isMentionAll: Boolean

是否 mention 所有用户

Link copied to clipboard
abstract val isMentionHere: Boolean

是否 mention 在线用户

Link copied to clipboard
abstract val mention: List<String>

提及到的用户 id 的列表

Link copied to clipboard
abstract val mentionRoles: List<Int>

mention 用户角色的数组

Link copied to clipboard
abstract val type: Int

类型。同 Event.type