fix error message

This commit is contained in:
LenAnderson
2024-04-11 22:18:51 -04:00
parent fb97665f50
commit f95e38e85a

View File

@ -321,7 +321,7 @@ export class SlashCommandParser {
return cmd;
} else {
console.warn(this.behind, this.char, this.ahead);
throw new SlashCommandParserError(`Unexpected end of command at position ${this.index - 2}: "/${cmd.command}"`, this.text, this.index);
throw new SlashCommandParserError(`Unexpected end of command at position ${this.index - 2}: "/${cmd.name}"`, this.text, this.index);
}
}