Skip to content

Commit e42998e

Browse files
committed
Fix for #571
1 parent faeaa15 commit e42998e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discord/cog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def __new__(cls: Type[CogMeta], *args: Any, **kwargs: Any) -> CogMeta:
146146
del listeners[elem]
147147

148148
try:
149-
if getattr(value, "parent") is not None:
149+
if getattr(value, "parent") is not None and isinstance(value, ApplicationCommand):
150150
# Skip commands if they are a part of a group
151151
continue
152152
except AttributeError:

0 commit comments

Comments
 (0)