diff options
| author | apple502j <[email protected]> | 2020-01-15 13:43:42 +0900 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2020-01-14 23:46:46 -0500 |
| commit | 7af8b313e5305d72f9a5f3ade20d493b26ddf7db (patch) | |
| tree | 113479bebe7840c48979a72f8a834a8a2e30da25 | |
| parent | Document BaseActivity (diff) | |
| download | discord.py-7af8b313e5305d72f9a5f3ade20d493b26ddf7db.tar.xz discord.py-7af8b313e5305d72f9a5f3ade20d493b26ddf7db.zip | |
[commands] Add missing async in documentation
| -rw-r--r-- | discord/ext/commands/core.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py index f4b6aedb..97c2634c 100644 --- a/discord/ext/commands/core.py +++ b/discord/ext/commands/core.py @@ -1318,7 +1318,7 @@ def check(predicate): def owner_or_permissions(**perms): original = commands.has_permissions(**perms).predicate - def extended_check(ctx): + async def extended_check(ctx): if ctx.guild is None: return False return ctx.guild.owner_id == ctx.author.id or await original(ctx) |