Client

The main process that handles everything about the bot

new Client(clientOptions)
ArgumentTypeDescription

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

commandsCreate(commandBuilder, custom)

The type Commands contain an Object of all the available template commands' commandsBuilder class.

ArgumentRequiredTypeDescription

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

onEventRun(event, callback)
ArgumentRequiredTypeDescription

event

String

The name of the command

callback

Function

The description of the command, used for slash command registration

publishCommand

publishCommand(operation)
ArgumentRequiredTypeDescription

operation

Number

The operation to perform on the command. | Use the SlashCommandOperations module.

Last updated