aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Numerlor <[email protected]>2019-10-02 14:04:19 +0200
committerGravatar Numerlor <[email protected]>2019-10-02 14:04:19 +0200
commit0e01bf0fb84fc91f691cd4f721180c4be0a5dd70 (patch)
tree8e411beae16326451d925842ec0a2989d0fbb4c9
parentadd logging when an overriden in_channel_check fails (diff)
fix grammar in in_channel_override docstring
-rw-r--r--bot/decorators.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/decorators.py b/bot/decorators.py
index 471ea3be..2c042b56 100644
--- a/bot/decorators.py
+++ b/bot/decorators.py
@@ -67,7 +67,8 @@ def in_channel_check(*channels: int, bypass_roles: typing.Container[int] = None)
"""
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 the global whitelist.
"""
def predicate(ctx: Context) -> bool:
if not ctx.guild: