aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--discord/ext/commands/core.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py
index 6af99622..ea67ea71 100644
--- a/discord/ext/commands/core.py
+++ b/discord/ext/commands/core.py
@@ -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