create
fun create(channelId: String, name: String? = null, level: Int? = null, parentId: String? = null, topic: String? = null, slowMode: Int? = null, limitAmount: Int? = null, voiceQuality: String? = null, password: String? = null): UpdateChannelApi(source)
构建 UpdateChannelApi.
Note: 属性说明中的各 "默认值" 的实际表现以服务器的处理结果为准。 此处的默认代表实际请求API时不携带相关参数,而并非填充默认属性。
Parameters
channelId
服务器中频道的ID
name
频道名称
level
频道排序
parentId
分组频道ID,设置为 "0"
为移出分组
topic
频道简介,文字频道有效
slowMode
慢速模式,单位ms。支持的值:0, 5000, 10000, 15000, 30000, 60000, 120000, 300000, 600000, 900000, 1800000, 3600000, 7200000, 21600000
limitAmount
此频道最大能容纳的用户数量,最大值99,语音频道有效
voiceQuality
声音质量,"1"
流畅,"2"
正常,"3"
高质量,语音频道有效
password
密码,语音频道有效
构建 UpdateChannelApi.
Parameters
channelId
服务器中频道的ID