diff --git a/public/scripts/slash-commands/SlashCommandParser.js b/public/scripts/slash-commands/SlashCommandParser.js index bb05c1589..7d14f3763 100644 --- a/public/scripts/slash-commands/SlashCommandParser.js +++ b/public/scripts/slash-commands/SlashCommandParser.js @@ -134,7 +134,7 @@ export class SlashCommandParser { addCommand(command, callback, aliases, helpString = '', interruptsGeneration = false, purgeFromMessage = true) { if (['/', '#'].includes(command[0])) { - throw new Error(`Illegal Name. Slash commandn name cannot begin with "${command[0]}".`); + throw new Error(`Illegal Name. Slash command name cannot begin with "${command[0]}".`); } const fnObj = Object.assign(new SlashCommand(), { name:command, callback, helpString, interruptsGeneration, purgeFromMessage, aliases });