Channel

interface Channel(source)

频道 Channel

Author

ForteScarlet

See also

Inheritors

Types

Link copied to clipboard

Channel 的类型,一般出现在事件中。

Properties

Link copied to clipboard
abstract val guildId: String

服务器id

Link copied to clipboard
abstract val hasPassword: Boolean

是否有密码

Link copied to clipboard
abstract val id: String

频道id

Link copied to clipboard
abstract val isCategory: Boolean

是否为分组

Link copied to clipboard
abstract val level: Int

排序level

Link copied to clipboard
abstract val name: String

频道名称

Link copied to clipboard
abstract val parentId: String

上级分组的id

Link copied to clipboard

针对角色在该频道的权限覆写规则组成的列表

Link copied to clipboard
abstract val permissionSync: Int

权限设置是否与分组同步, 1 or 0

Link copied to clipboard

针对用户在该频道的权限覆写规则组成的列表

Link copied to clipboard
abstract val slowMode: Int

慢速模式下限制发言的最短时间间隔, 单位为秒(s)

Link copied to clipboard
abstract val topic: String

频道简介

Link copied to clipboard
abstract val type: Int

频道类型: 1 文字频道, 2 语音频道

Link copied to clipboard
abstract val userId: String

创建者id

Inherited properties

Link copied to clipboard

得到 Channel.type 对应的 Channel.Type 枚举值。

Link copied to clipboard

得到 Channel.type 对应的 Channel.Type 枚举值。