This commit is contained in:
LenAnderson
2024-03-29 14:47:09 -04:00
parent 1c7b76746d
commit 364f802282

View File

@ -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 });