mirror of
https://github.com/chenasraf/venom.git
synced 2026-05-18 01:29:07 +00:00
fix: don't reply on empty command
This commit is contained in:
@@ -52,7 +52,9 @@ export async function handleMessage(message: Discord.Message) {
|
||||
if (command) {
|
||||
command.execute(message, args)
|
||||
} else {
|
||||
message.reply(`Command not found: ${cmdName}`)
|
||||
if (cmdName) {
|
||||
message.reply(`Command not found: ${cmdName}`)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user