Role

data class Role(val id: String, val name: String, val color: Int, val hoist: Int, val number: Int, val memberLimit: Int)(source)

频道身份组对象(Role)

Author

ForteScarlet

Constructors

Link copied to clipboard
constructor(id: String, name: String, color: Int, hoist: Int, number: Int, memberLimit: Int)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

ARGB的HEX十六进制颜色值转换后的十进制数值

Link copied to clipboard
val hoist: Int

是否在成员列表中单独展示: 0-否, 1-是

Link copied to clipboard
val id: String

身份组ID

Link copied to clipboard

是否在成员列表中单独展示

Link copied to clipboard
@SerialName(value = "member_limit")
val memberLimit: Int

成员上限

Link copied to clipboard

名称

Link copied to clipboard
val number: Int

人数

Inherited properties

Link copied to clipboard

判断 id 是否为如下所列的默认身分组ID: