diff options
| author | 2020-10-17 19:15:30 +0300 | |
|---|---|---|
| committer | 2020-10-17 19:15:30 +0300 | |
| commit | db771de1122d4f60e4531fd8538cdfb7ffeb849a (patch) | |
| tree | 8a3f16669b3cf5bb96a28423860716401481016a | |
| parent | Amended to work with current tests (diff) | |
Fixed style and linting
Diffstat (limited to '')
| -rw-r--r-- | bot/utils/channel.py | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/bot/utils/channel.py b/bot/utils/channel.py index 615698cab..487794c59 100644 --- a/bot/utils/channel.py +++ b/bot/utils/channel.py @@ -21,8 +21,8 @@ def is_mod_channel(channel: discord.TextChannel) -> bool:      log.trace(f"Checking if #{channel} is a mod channel.")      categories = (Categories.modmail, Categories.logs) -    return channel.id in constants.MODERATION_CHANNELS \ -        or any(is_in_category(channel, category) for category in categories) +    return (channel.id in constants.MODERATION_CHANNELS +            or any(is_in_category(channel, category) for category in categories))  def is_in_category(channel: discord.TextChannel, category_id: int) -> bool: | 
