MessageMember

data class MessageMember(val nick: String = "", val roles: List<String> = emptyList(), val joinedAt: String = ZERO_ISO_INSTANT) : Member(source)

MessageMember 中使用的 Member 实现。 其中的 user 来自 Message.author

Constructors

Link copied to clipboard
constructor(nick: String = "", roles: List<String> = emptyList(), joinedAt: String = ZERO_ISO_INSTANT)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
@SerialName(value = "joined_at")
open override val joinedAt: String

用户加入频道的时间

Link copied to clipboard
open override val nick: String

用户的昵称

Link copied to clipboard
open override val roles: List<String>

用户在频道内的身份组ID, 默认值可参考 DefaultRoles

Link copied to clipboard
open lateinit override var user: User

Inherited functions

Link copied to clipboard

将任意 Member 类型转化为 MessageMember. 如果类型本身即为 MessageMember 则返回自身,否则得到新的实例。