SimpleMemberWithGuildId

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

MemberWithGuildId 的简单基本实现。

See also

Constructors

Link copied to clipboard
constructor(guildId: String, user: User, nick: String, roles: List<String> = emptyList(), 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
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 则返回自身,否则得到新的实例。