SimpleMember

data class SimpleMember(val user: User, val nick: String, val roles: List<String> = emptyList(), val joinedAt: String) : Member(source)

Member 的简单基本实现。

See also

Constructors

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

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 override val user: User

用户的频道基础信息,只有成员相关接口中会填充此信息

Inherited functions

Link copied to clipboard

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