Client
The main process that handles everything about the bot
Argument | Type | Description |
---|---|---|
clientOptions | The options for the client |
Properties
client
Returns the client object of the bot, as returned by Discord.js
commands
Returns an object with information on loaded template commands
customCommands
Returns an object with information on loaded custom commands
intents
Returns the intents that the bot is using
token
Returns the token used to log the bot in
Methods
commandsCreate
The type Commands contain an Object of all the available template commands' commandsBuilder class.
Argument | Required | Type | Description |
---|---|---|---|
commandBuilder | The object containing all the information about the command, derived from commandsBuilder class | ||
custom | Function | The function is to run once the command is executed. This will override all the built-in actions to the template. |
Returns: Object
onEventRun
Argument | Required | Type | Description |
---|---|---|---|
event | String | The name of the command | |
callback | Function | The description of the command, used for slash command registration |
publishCommand
Argument | Required | Type | Description |
---|---|---|---|
operation | Number | The operation to perform on the command. | Use the SlashCommandOperations module. |
Last updated