Audit Log Manager to interact with the REST API
Channel Manager to interact with the REST API
Emoji Manager to interact with the REST API
Guild Manager to interact with the REST API
Guild Scheduled Event Manager to interact with the REST API
Guild Template Manager to interact with the REST API
Intents the application has activated
Integration Manager to interact with the REST API
Invite Manager to interact with the REST API
Stage Instance Manager to interact with the REST API
Sticker Manager to interact with the REST API
User Manager to interact with the REST API
API Version to use
Voice Manager to interact with the REST API
Webhook Manager to interact with the REST API
Application's cache
Application's token
Token type
Websocket to connect the application to the Discord Gateway
It takes an event name and any number of arguments, and calls the emit
method on the Client
class with the event name and arguments
The name of the event to emit.
The arguments to pass to the event handler.
The return value is a boolean that indicates whether the event was emitted.
The on
function is a method that adds a listener to the client's event emitter
The name of the event you want to listen to.
The listener function that will be called when the event is emitted.
The this
object.
The once
method is a method that allows you to listen to an event only once.
The name of the event you want to listen to.
The listener function that will be called when the event is emitted.
The client.
Interact with the Discord Gateway to add a Presence to the Bot User
New presence to set
When a Gateway event is received, emit it to the client
The event name.
The object that was dispatched.
Given a list of intents, return the number that represents them
An array of intents to be added to the client.
The number of intents in the array.
It sets up the WebSocket connection and listens for messages from Discord
Generated using TypeDoc
Application Command Manager to interact with the REST API