rest_client#

class wyvern.api.rest_client.RESTClientImpl(*, token: str, bot: GatewayBot, api_version: int, client_session: aiohttp.ClientSession | Undefined = <wyvern.utils.consts.Undefined object>)[source]#

Bases: RESTClient

Class handling operations related to REST/HTTP requests to the discord API. An instance of this class is binded with the GatewayBot instance.

async fetch_current_user() BotUser[source]#

This function is a coroutine.

Gets the current bot user.

Returns:

The bot user.

Return type:

BotUser