Skip to content

Commit dcc0643

Browse files
committed
fix: Change commands.check to allow ApplicationCommand
1 parent c071d08 commit dcc0643

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discord/ext/commands/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1723,7 +1723,7 @@ async def only_me(ctx):
17231723
"""
17241724

17251725
def decorator(func: Union[Command, CoroFunc]) -> Union[Command, CoroFunc]:
1726-
if isinstance(func, Command):
1726+
if isinstance(func, _BaseCommand):
17271727
func.checks.append(predicate)
17281728
else:
17291729
if not hasattr(func, '__commands_checks__'):

0 commit comments

Comments
 (0)