Skip to content

Commit d4f5576

Browse files
authored
Merge pull request #572 from krittick/master
Update recent change to CogMeta class to only apply to ApplicationCommand groups
2 parents faeaa15 + e42998e commit d4f5576

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)