Client

The main process that handles everything about the bot

new Client(clientOptions)
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

commandsCreate(commandBuilder, custom)

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

onEventRun(event, callback)
Argument
Required
Type
Description

event

String

The name of the command

callback

Function

The description of the command, used for slash command registration

publishCommand

publishCommand(operation)
Argument
Required
Type
Description

operation

Number

Last updated