request

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

直接通过bot进行请求。

Throws

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


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

Deprecated

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

Replace with

requestBy(bot)

直接通过bot进行请求。

Throws

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