ChannelPermissions

data class ChannelPermissions(val channelId: String, val userId: String? = null, val roleId: String? = null, val permissions: Permissions)(source)

子频道权限对象(ChannelPermissions)

Constructors

Link copied to clipboard
constructor(channelId: String, userId: String? = null, roleId: String? = null, permissions: Permissions)

Properties

Link copied to clipboard
@SerialName(value = "channel_id")
val channelId: String

子频道 id

Link copied to clipboard
@get:JvmName(name = "getPermissions")
val permissions: Permissions

用户拥有的子频道权限

Link copied to clipboard
@SerialName(value = "role_id")
val roleId: String? = null

用户 id 或 身份组 id,只会返回其中之一

Link copied to clipboard
@SerialName(value = "user_id")
val userId: String? = null

用户 id 或 身份组 id,只会返回其中之一

Link copied to clipboard

获取userIdroleId的值。