Browse Source

[commands] Only show CommandNotFound on non-empty commands.

pull/245/head
Rapptz 9 years ago
parent
commit
4dbac9423d
  1. 2
      discord/ext/commands/bot.py

2
discord/ext/commands/bot.py

@ -656,7 +656,7 @@ class Bot(GroupMixin, discord.Client):
ctx.command.dispatch_error(e, ctx)
else:
self.dispatch('command_completion', command, ctx)
else:
elif invoker:
exc = CommandNotFound('Command "{}" is not found'.format(invoker))
self.dispatch('command_error', exc, ctx)

Loading…
Cancel
Save