request

suspend fun <R> TencentGuildBot.request(api: TencentApi<R>): R

直接通过bot进行请求。

Throws

如果返回状态码不在 200..300之间。


suspend fun <R> TencentApi<R>.request(bot: TencentGuildBot): R

Deprecated

使用更符合语义的Api.requestBy(Bot) 或 Bot.request(Api)

Replace with

requestBy(bot)

直接通过bot进行请求。

Throws

如果返回状态码不在 200..300之间。