From 7a52aa37646b87ffba5277f463f2659733e1d426 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Wed, 13 Apr 2022 17:14:03 -0400 Subject: [PATCH] [commands] Force HybridGroup to always have invoke_without_command --- discord/ext/commands/hybrid.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/discord/ext/commands/hybrid.py b/discord/ext/commands/hybrid.py index e0e78592b..678c88975 100644 --- a/discord/ext/commands/hybrid.py +++ b/discord/ext/commands/hybrid.py @@ -429,6 +429,8 @@ class HybridGroup(Group[CogT, P, T]): Note that application commands groups cannot have callbacks associated with them, so the callback is only called if it's not invoked as an application command. + Hybrid groups will always have :attr:`invoke_without_command` set to ``True``. + These are not created manually, instead they are created via the decorator or functional interface. @@ -439,6 +441,7 @@ class HybridGroup(Group[CogT, P, T]): def __init__(self, *args: Any, **attrs: Any) -> None: super().__init__(*args, **attrs) + self.invoke_without_command = True parent = None if self.parent is not None: if isinstance(self.parent, HybridGroup):