EventMember

data class EventMember(val guildId: String, val user: User, val nick: String, val roles: List<String> = emptyList(), val opUserId: String, val joinedAt: String = ZERO_ISO_INSTANT) : MemberWithGuildId(source)

频道成员事件体。

MemberWithGuildId 基础上,增加 op_user_id 代表操作人。

Constructors

Link copied to clipboard
constructor(guildId: String, user: User, nick: String, roles: List<String> = emptyList(), opUserId: String, joinedAt: String = ZERO_ISO_INSTANT)

Properties

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

频道id

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

用户加入频道的时间

Link copied to clipboard
open override val nick: String

用户的昵称

Link copied to clipboard
@SerialName(value = "op_user_id")
val opUserId: String

操作人

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

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

Link copied to clipboard
open override val user: User

用户的频道基础信息

Inherited functions

Link copied to clipboard

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