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)(source)
Api GetChannelListApi 的响应体。
Properties
Inherited functions
Link copied to clipboard
fun ChannelInfo.toChannel(guildId: String, topic: String = "", slowMode: Int = 0, permissionOverwrites: List<PermissionOverwrite> = emptyList(), permissionUsers: List<PermissionUser> = emptyList(), permissionSync: Int = 0, hasPassword: Boolean = false): Channel
将 ChannelInfo 转化为 Channel 类型, 并可选的提供一些缺失字段的默认值。