Package-level declarations
Types
Link copied to clipboard
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)
Api GetChannelListApi 的响应体。
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class ChannelView @ApiResultType constructor(val id: String, val guildId: String, val userId: String, val parentId: String, val name: String, val topic: String, val type: Int, val level: Int, val slowMode: Int, val hasPassword: Boolean = false, val maximumMember: Int, val isCategory: Boolean = false, val serverUrl: String, val permissionOverwrites: List<PermissionOverwrite> = emptyList(), val permissionUsers: List<String> = emptyList(), val permissionSync: Int = 0, val children: List<String>? = null)
GetChannelViewApi 的响应体。
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class VoiceChannelUser @ApiResultType constructor(val id: String, val username: String, val avatar: String, val identifyNum: String = username.substringAfter('#', ""), val isOnline: Boolean = false, val os: String? = null, val status: Int = 0, val vipAvatar: String? = null, val nickname: String? = null, val roles: List<Long> = emptyList(), val isVip: Boolean = false, val isAiReduceNoise: Boolean = false, val isPersonalCardBg: Boolean = false, val isBot: Boolean = false, val isMobileVerified: Boolean, val joinedAt: Long = 0, val activeTime: Long = 0, val liveInfo: LiveInfo? = null) : User
Api GetChannelUserListApi 的响应体中的用户信息。
Inherited functions
Link copied to clipboard
inline fun UpdateChannelApi.Factory.create(channelId: String, block: UpdateChannelApi.Builder.() -> Unit): UpdateChannelApi
使用 DSL 方式创建 UpdateChannelApi.
Link copied to clipboard
inline fun GetChannelListApi.Factory.createFlow(crossinline block: suspend GetChannelListApi.Factory.(page: Int) -> ListData<ChannelInfo>): Flow<ListData<ChannelInfo>>
批次量的通过 GetChannelListApi 查询所有结果直至最后一次响应的 ListMeta.page>= ListMeta.pageTotal。
Link copied to clipboard
inline fun GetChannelListApi.Factory.createItemFlow(crossinline block: suspend GetChannelListApi.Factory.(page: Int) -> ListData<ChannelInfo>): Flow<ChannelInfo>
批次量的通过 GetChannelListApi 查询所有结果直至最后一次响应的 ListMeta.page>= ListMeta.pageTotal。
Link copied to clipboard
慢速模式。
Link copied to clipboard
将 ChannelView 转化为 Channel 类型, 并可选的提供一些缺失字段的默认值。
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 类型, 并可选的提供一些缺失字段的默认值。