Skip to content

Commit 12e90dc

Browse files
authored
Merge pull request #302 from ToxicKidz/fix/checks
Change `commands.check` to allow `ApplicationCommand`
2 parents c071d08 + dcc0643 commit 12e90dc

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)