create
fun create(guildId: String, name: String, type: Int? = null, parentId: String? = null, limitAmount: Int? = null, voiceQuality: Int? = null): CreateChannelApi(source)
构建 CreateChannelApi.
Note: 属性说明中的各 “默认值” 的实际表现以服务器的处理结果为准。 此处的默认代表实际请求API时不携带相关参数,而并非填充默认属性。
Parameters
guildId
服务器id
name
频道名称
type
频道类型,1
文字,2
语音,默认为文字
parentId
父分组id
limitAmount
语音频道人数限制,最大 99
voiceQuality
语音音质,默认为 2
。
inline fun create(guildId: String, name: String, block: CreateChannelApi.Builder.() -> Unit): CreateChannelApi(source)
使用 Builder 构建 CreateChannelApi.
Parameters
guildId
服务器id
name
频道名称