RegisterCommands

RegisterCommands

# new RegisterCommands(commands, token, clientID)

Easily register slash commands

Parameters:
Name Type Description
commands Array.<object>

Array of commands needed to register slash commands

token string

Token needed by rest to register slash commands

clientID string

Client id of the bot

Methods

# (async) register(guildId)

Register slash commands

Parameters:
Name Type Description
guildId string

ID of the guild you want to register slash in