SetGroupAnonymousBanApi
set_group_anonymous_ban
-群组匿名用户禁言
Author
ForteScarlet
Properties
Link copied to clipboard
API 的 action(要进行的动作),会通过 resolveUrlAction 附加在 url 中。 可以重写它来改变此逻辑。
Link copied to clipboard
预期结果 OneBotApiResult 类型的反序列化器。
Link copied to clipboard
预期结果的反序列化器。
Inherited properties
Inherited functions
Link copied to clipboard
suspend fun OneBotApi<*>.request(client: HttpClient, host: Url, accessToken: String? = null, actionSuffixes: Collection<String>? = null): HttpResponse
suspend fun OneBotApi<*>.request(client: HttpClient, host: String, accessToken: String? = null, actionSuffixes: Collection<String>? = null): HttpResponse
对 this 发起一次请求,并得到相应的 HttpResponse 响应。
Link copied to clipboard
@Api4J
@Api4J
异步地请求 OneBotApi.
Link copied to clipboard
@Api4J
@Api4J
阻塞地请求 OneBotApi.
Link copied to clipboard
使用 bot 对 this 发起一次请求, 并得到相应的 HttpResponse 响应。
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun <T : Any> OneBotApi<T>.requestData(client: HttpClient, host: Url, accessToken: String? = null, actionSuffixes: Collection<String>? = null, charset: Charset = Charsets.UTF_8, decoder: Json = OneBot11.DefaultJson): T
suspend fun <T : Any> OneBotApi<T>.requestData(client: HttpClient, host: String, accessToken: String? = null, actionSuffixes: Collection<String>? = null, charset: Charset = Charsets.UTF_8, decoder: Json = OneBot11.DefaultJson): T
Link copied to clipboard
@Api4J
@Api4J
异步地请求 OneBotApi.
Link copied to clipboard
@Api4J
@Api4J
阻塞地请求 OneBotApi.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Api4J
@Api4J
异步地请求 OneBotApi.
Link copied to clipboard
suspend fun OneBotApi<*>.requestRaw(client: HttpClient, host: Url, accessToken: String? = null, actionSuffixes: Collection<String>? = null, charset: Charset = Charsets.UTF_8): String
suspend fun OneBotApi<*>.requestRaw(client: HttpClient, host: String, accessToken: String? = null, actionSuffixes: Collection<String>? = null, charset: Charset = Charsets.UTF_8): String
对 this 发起一次请求,并得到响应体的字符串内容。
Link copied to clipboard
@Api4J
@Api4J
异步地请求 OneBotApi.
Link copied to clipboard
@Api4J
@Api4J
阻塞地请求 OneBotApi.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Api4J
@Api4J
异步地请求 OneBotApi.
Link copied to clipboard
@Api4J
@Api4J
异步地请求 OneBotApi.
Link copied to clipboard
suspend fun <T : Any> OneBotApi<T>.requestResult(client: HttpClient, host: Url, accessToken: String? = null, actionSuffixes: Collection<String>? = null, charset: Charset = Charsets.UTF_8, decoder: Json = OneBot11.DefaultJson): OneBotApiResult<T>
suspend fun <T : Any> OneBotApi<T>.requestResult(client: HttpClient, host: String, accessToken: String? = null, actionSuffixes: Collection<String>? = null, charset: Charset = Charsets.UTF_8, decoder: Json = OneBot11.DefaultJson): OneBotApiResult<T>
对 this 发起一次请求,并得到响应体的 OneBotApiResult 结果。
Link copied to clipboard
@Api4J
@Api4J
异步地请求 OneBotApi.
Link copied to clipboard
@Api4J
@Api4J
阻塞地请求 OneBotApi.
Link copied to clipboard
使用 bot 对 this 发起一次请求, 并得到相应的 OneBotApiResult 响应。
Link copied to clipboard
@Api4J
Link copied to clipboard
Link copied to clipboard
@Api4J
Link copied to clipboard
@Api4J
@Api4J
异步地请求 OneBotApi.
Link copied to clipboard
Link copied to clipboard
根据 action 和可能额外要求的 actionSuffixes 构建一个完整的请求地址。
Link copied to clipboard
对 urlBuilder 进行一些额外的处理,例如当method为GET时为其添加查询参数。 主要面向额外扩展的自定义实现来重写此方法。