Package-level declarations
Types
Link copied to clipboard
interface ApiDescription
对一个 API 类型的描述,属性格式与 接口权限对象 中的相关信息保持一致。
Link copied to clipboard
一个用于连接 websocket 的地址。GatewayApis.Normal 的响应体。
Link copied to clipboard
sealed class GatewayApis<R : GatewayInfo>(val path: Array<String>, val resultDeserializer: DeserializationStrategy<R>) : GetQQGuildApi<R>
获取网关信息。
Link copied to clipboard
Base sealed class for Gateway and GatewayWithShard.
Link copied to clipboard
data class GatewayWithShard(val url: String, val shards: Int, val sessionStartLimit: SessionStartLimit) : GatewayInfo
一个用于连接 websocket 的地址。同时返回建议的分片数,以及目前连接数使用情况。 GatewayApis.Shared 的响应体。
Link copied to clipboard
Link copied to clipboard
消息被审核' 异常。 当推送、回复消息时响应的 code
错误码为 304023
、304024
时会在响应数据包 data
中返回 MessageAudit
审核消息的信息, 例如:
Link copied to clipboard
推送、回复消息时响应的 '消息被审核' 数据信息。
Link copied to clipboard
Link copied to clipboard
用于多平台实现的最小目标。
用于多平台实现的最小目标。
用于多平台实现的最小目标。
用于多平台实现的最小目标。
Link copied to clipboard
Link copied to clipboard
表示为一个QQ频道的API。
Link copied to clipboard
Link copied to clipboard
data class SessionStartLimit(val total: Int, val remaining: Int, val resetAfter: Int, val maxConcurrency: Int)
Link copied to clipboard
ApiDescription 的基本抽象实现类,直接通过构造进行继承。
Link copied to clipboard
SimpleApiDescription 的基本抽象实现,method 提供为 GET
Link copied to clipboard
SimpleApiDescription 的基本抽象实现,method 提供为 POST
Functions
Link copied to clipboard
fun <R> doRequest(api: QQGuildApi<R>, client: HttpClient, server: String, token: String, decoder: StringFormat = QQGuildApi.DefaultJsonDecoder): R
request for Java
Link copied to clipboard
用于判断两个 ApiDescription 中的两个属性是否相同。
Link copied to clipboard
用于在Java中构建一个默认的 HttpClient。
Link copied to clipboard
fun newJson(build: Consumer<JsonBuilder> = Consumer {
it.apply {
isLenient = true
ignoreUnknownKeys = true
}
}): Json
用于在Java中构建一个 Json。
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
suspend fun QQGuildApi<*>.requestRaw(client: HttpClient = QQGuildApi.DefaultHttpClient, server: Url, token: String): String
通过提供的参数,对此api进行请求并得到最终结果。