ChannelInfo
data class ChannelInfo @ApiResultType constructor(val id: String, val name: String, val isCategory: Boolean, val userId: String, val parentId: String, val level: Int, val type: Int, val limitAmount: Int, val guildId: String = "", val topic: String = "", val slowMode: Int = 0, val permissionOverwrites: List<PermissionOverwrite> = emptyList(), val permissionSync: Int = 0, val hasPassword: Boolean = false)(source)
Api GetChannelListApi 的响应体。
Constructors
Link copied to clipboard
constructor(id: String, name: String, isCategory: Boolean, userId: String, parentId: String, level: Int, type: Int, limitAmount: Int, guildId: String = "", topic: String = "", slowMode: Int = 0, permissionOverwrites: List<PermissionOverwrite> = emptyList(), permissionSync: Int = 0, hasPassword: Boolean = false)
Properties
Inherited functions
Link copied to clipboard
fun ChannelInfo.toChannel(guildId: String = this.guildId, topic: String = this.topic, slowMode: Int = this.slowMode, permissionOverwrites: List<PermissionOverwrite> = this.permissionOverwrites, permissionUsers: List<PermissionUser> = emptyList(), permissionSync: Int = this.permissionSync, hasPassword: Boolean = this.hasPassword): Channel
将 ChannelInfo 转化为 Channel 类型, 并可选的提供一些缺失字段的默认值。