mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-20 16:00:29 +00:00
[commands] GroupView.get_command shouldn't raise errors for empty names
This commit is contained in:
parent
4a686e11ba
commit
901290c8a2
@ -1180,6 +1180,8 @@ class GroupMixin:
|
||||
return self.all_commands.get(name)
|
||||
|
||||
names = name.split()
|
||||
if not names:
|
||||
return None
|
||||
obj = self.all_commands.get(names[0])
|
||||
if not isinstance(obj, GroupMixin):
|
||||
return obj
|
||||
|
Loading…
x
Reference in New Issue
Block a user