Options for the client.
Protected Readonly[brandThis field doesn't actually exist, it's just a way to make TS properly infer the events from classes that extend AsyncEventEmitter
The action manager of the client
All of the BaseChannels that the client is currently handling, mapped by their ids - as long as sharding isn't being used, this will be every channel in every guild the bot is a member of. Note that DM channels will not be initially cached, and thus not be present in the Manager without their explicit fetching or use.
All of the guilds the client is currently handling, mapped by their ids - as long as sharding isn't being used, this will be every guild the bot is a member of
The last time a ping was sent (a timestamp) for each WebSocketShard connection
The options the client was instantiated with
The ID of the owner(s).
Timestamp of the time the client was last Status.Ready at
The REST manager of the client
Shard helpers for the client (only if the process was spawned from a ShardingManager)
The current status of this Client
The ID of the superUser(s).
The sweeping functions and their intervals used to periodically sweep caches
Authorization token for the logged in bot.
If present, this defaults to process.env.DISCORD_TOKEN when instantiating the client
User that the client is logged in as
All of the User objects that have been cached at any point, mapped by their ids
Utility methods.
The voice manager of the client
The WebSocket manager of the client
The average ping of all WebSocketShards
Time at which the client was last regarded as being in the Status.Ready state (each time the client disconnects and successfully reconnects, this will be overwritten)
How long it has been since the client last entered the Status.Ready state in milliseconds
Deletes a webhook.
The webhook's id
Optionaloptions: WebhookDeleteOptionsOptions for deleting the webhook
Logs out, terminates the connection to Discord, and destroys the client.
Obtains a guild preview from Discord, available for all guilds the bot is in and all Discoverable guilds.
The guild to fetch the preview for
Obtains the widget data of a guild from Discord, available for guilds with the widget enabled.
The guild to fetch the widget data for
Obtains an invite from Discord.
Invite code or URL
Optionaloptions: ClientFetchInviteOptionsOptions for fetching the invite
Obtains the list of available sticker packs.
Optionaloptions: { packId: string }Options for fetching sticker packs A collection of sticker packs, or a single sticker pack if a packId was provided
Obtains the list of available sticker packs.
Optionaloptions: StickerPackFetchOptionsOptions for fetching sticker packs A collection of sticker packs, or a single sticker pack if a packId was provided
Checks if a user is the owner of this bot.
User to check.
Returns whether the client has logged in, indicative of being able to access
properties such as user and application.
Checks if a user is a super user of this bot.
User to check.
Optionalevent: string | symbolTransforms the client into a plain object.
StaticlistenerStaticonOptionaloptions: AbortableMethodsStaticonceOptionaloptions: AbortableMethods
The Akairo framework client. Creates the handlers and sets them up.