ShewenyClient
The main hub for interacting with the Discord API, and the starting point for any bot.
Constructor
new ShewenyClient(options);
Name | Type | Description | Optional |
---|---|---|---|
options | ShewenyClientOptions | The options for the client | No |
clientOptions | ClientOptions | The options for the discord.js client (use first parameter if not provided) | ✓ |
Methods
Events
Properties
admins
The admins of the bot (no affected by cooldown and have adminOnly permission).
cooldowns
The cooldowns of the bot.
Return : ShewenyClientCooldowns
collections
The collections of commands, events, buttons, select-menus, inhibitors.
Return : ShewenyClientCollections
connected
Indicate when the client is connected to the Discord API.
Return : Boolean
joinThreadsOnCreate
If the bot should join threads on create.
Return : Boolean
managers
The managers of the client.
Return : ShewenyClientManagers.
mode
The mode for run application (development or production).
Return : String
util
Useful functions for your bot.
Return : ClientUtil.
Methods
awaitReady
Wait for the client to be ready.
Return Promise
Events
interactionButtonCreate
Emitted when an interaction button is created.
Parameters :
- interaction (type : ButtonInteraction)
interactionCommmandCreate
Emitted when an Slash Command or Context Menu is created.
Parameters :
- interaction (type : CommandInteraction or ContextMenuInteraction))
interactionContextMenuCreate
Emitted when an interaction Context Menu is created.
Parameters :
- interaction (type : ContextMenuInteraction)
interactionMessageComponentCreate
Emitted when an Message Component interaction is created.
Parameters :
- interaction (type : MessageComponentInteraction)
interactionSelectMenuCreate
Emitted when an Select Menu interaction is created.
Parameters :
- interaction (type : SelectMenuInteraction)