ModifyChannelRolePermissionsApi
用于修改子频道 channel_id
下身份组 role_id
的权限。
要求操作人具有管理子频道的权限,如果是机器人,则需要将机器人设置为管理员。
参数包括
add
和remove
两个字段,分别表示授予的权限以及删除的权限。 要授予身份组权限即把add
对应位置 1,删除身份组权限即把remove
对应位置 1。当两个字段同一位都为 1,表现为删除权限。本接口不支持修改
可管理子频道
权限。
Author
ForteScarlet
Functions
Link copied to clipboard
open suspend override fun doRequest(client: HttpClient, server: Url, token: String, decoder: StringFormat)
使用此api发起一次请求,并得到预期中的结果。
Link copied to clipboard
使用此api发起一次请求,并得到响应结果的字符串。
Link copied to clipboard
suspend fun <R> QQGuildApi<R>.request(client: HttpClient = QQGuildApi.DefaultHttpClient, server: Url, token: String, decoder: StringFormat = QQGuildApi.DefaultJsonDecoder): R
通过提供的参数,对此api进行请求并得到最终结果。
Link copied to clipboard
protected suspend fun requestForResponse(client: HttpClient, server: Url, token: String, json: Json = DefaultJsonDecoder): HttpResponse
Link copied to clipboard
protected inline suspend fun requestForText(client: HttpClient, server: Url, token: String, useResp: (HttpResponse) -> Unit = {}): String
通过 requestForResponse 得到响应,读取为文本并输出debug日志后返回。 不会进行校验。
Link copied to clipboard
suspend fun QQGuildApi<*>.requestRaw(client: HttpClient = QQGuildApi.DefaultHttpClient, server: Url, token: String): String
通过提供的参数,对此api进行请求并得到最终结果。
Link copied to clipboard
此请求对应的api路由路径以及路径参数。 例如:/guild/list