mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-16 18:59:09 +00:00
[commands] Only show CommandNotFound on non-empty commands.
This commit is contained in:
parent
f6ef4868d1
commit
4dbac9423d
@ -656,7 +656,7 @@ class Bot(GroupMixin, discord.Client):
|
|||||||
ctx.command.dispatch_error(e, ctx)
|
ctx.command.dispatch_error(e, ctx)
|
||||||
else:
|
else:
|
||||||
self.dispatch('command_completion', command, ctx)
|
self.dispatch('command_completion', command, ctx)
|
||||||
else:
|
elif invoker:
|
||||||
exc = CommandNotFound('Command "{}" is not found'.format(invoker))
|
exc = CommandNotFound('Command "{}" is not found'.format(invoker))
|
||||||
self.dispatch('command_error', exc, ctx)
|
self.dispatch('command_error', exc, ctx)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user