This PR implements three slash commands - /about, /level and /ping. Additionally, it implements the logic required to register and deploy slash commands, i.e. the interactionCreate event and the deploySlashCommand core function respectively.
deploySlashCommand() is used in the ready event if the --deploy flag is specified when starting the bot.
New scripts have been added to package.json to easily run delet3 in a state where it automatically deploys slash commands at startup.
Other notable changes include:
fixed an issue where permLevels weren't being retrieved using proper Map methods in some locations
updated permLevel checks to support interactions
distinguish ApplicationCommands from regular commands in the console
added footer to command-specific help embeds informing the user of the meaning of "< >" and "[ ]" (required and optional params respectively).
This PR implements three slash commands -
/about
,/level
and/ping
. Additionally, it implements the logic required to register and deploy slash commands, i.e. the interactionCreate event and the deploySlashCommand core function respectively.deploySlashCommand()
is used in the ready event if the--deploy
flag is specified when starting the bot. New scripts have been added to package.json to easily run delet3 in a state where it automatically deploys slash commands at startup.Other notable changes include: