* Creates or updates a command * * See Commands.slashCommand, Commands.messageCommand and Commands.userCommand * for more info on defining the commands themselves
(command: Commands.Command)
| 53 | * for more info on defining the commands themselves |
| 54 | */ |
| 55 | createCommand(command: Commands.Command) { |
| 56 | this.commands.push(command); |
| 57 | EventSystem.commandSystem.addCommand(command); |
| 58 | } |
| 59 | |
| 60 | createSlashCommand(name: string, description: string): Commands.SlashCommandBuilder<{}> { |
| 61 | const builder = Commands.slashCommand(name, description) |
no test coverage detected