diff options
author | 2019-10-02 00:31:09 +0200 | |
---|---|---|
committer | 2019-10-02 00:31:09 +0200 | |
commit | 2f349294d94eac5eec172674e868dcf281e69687 (patch) | |
tree | 64df77d773c3cf01a5b0dab415c52769c65701c7 /bot | |
parent | add return type hint to override_in_channel inner function (diff) |
fix in_channel_check docstring style
Diffstat (limited to 'bot')
-rw-r--r-- | bot/decorators.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bot/decorators.py b/bot/decorators.py index 8748fd83..32c017d7 100644 --- a/bot/decorators.py +++ b/bot/decorators.py @@ -64,9 +64,11 @@ def without_role(*role_ids: int) -> bool: def in_channel_check(*channels: int, bypass_roles: typing.Container[int] = None) -> typing.Callable[[Context], bool]: - """Checks that the message is in a whitelisted channel or optionally has a bypass role. + """ + Checks that the message is in a whitelisted channel or optionally has a bypass role. - If `in_channel_override` is present, check if it contains channels and use them in place of global whitelist""" + If `in_channel_override` is present, check if it contains channels and use them in place of global whitelist + """ def predicate(ctx: Context) -> bool: if not ctx.guild: log.debug(f"{ctx.author} tried to use the '{ctx.command.name}' command from a DM.") |