Skip to content

Commit

Permalink
fix non-async method in owner_or_permission doc example
Browse files Browse the repository at this point in the history
  • Loading branch information
krittick committed Jan 20, 2022
1 parent a25833e commit 8a0fe90
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 @@ -1680,7 +1680,7 @@ def check(predicate: Check) -> Callable[[T], T]:
.. code-block:: python3
def owner_or_permissions(**perms):
async def owner_or_permissions(**perms):
original = commands.has_permissions(**perms).predicate
async def extended_check(ctx):
if ctx.guild is None:
Expand Down

0 comments on commit 8a0fe90

Please sign in to comment.