Skip to content

Commit

Permalink
Merge pull request #302 from ToxicKidz/fix/checks
Browse files Browse the repository at this point in the history
Change `commands.check` to allow `ApplicationCommand`
  • Loading branch information
BobDotCom authored Oct 22, 2021
2 parents c071d08 + dcc0643 commit 12e90dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discord/ext/commands/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1723,7 +1723,7 @@ async def only_me(ctx):
"""

def decorator(func: Union[Command, CoroFunc]) -> Union[Command, CoroFunc]:
if isinstance(func, Command):
if isinstance(func, _BaseCommand):
func.checks.append(predicate)
else:
if not hasattr(func, '__commands_checks__'):
Expand Down

0 comments on commit 12e90dc

Please sign in to comment.