fix: correct unknown command name reporting and silence background voice pings (#10)

This commit is contained in:
NoLogicAlan committed 2026-10-21 04:14:10 +03:00
1 parent f2bfff59b5
commit cf278ed68c
4 files changed
+13 -6

No files matched your search

+1 -1
View File
@@ -159,7 +159,7 @@ export class CommandHandler extends EventEmitter {
}
if (!this.commandNames.includes(args[0].toLowerCase())) {
this.replyHandler(this.t(guildId, "cmdHandler.command.invalid", { command: this.format("$prefix$helpCmd", guildId) }), msg);
this.replyHandler(this.t(guildId, "cmdHandler.command.invalid", { command: `${prefix}${args[0]}` }), msg);
return;
}
return this.processCommand(this.commands.find(e => e.aliases.includes(args[0].toLowerCase())), args, msg);