diff options
author | 2021-03-21 18:11:50 +0000 | |
---|---|---|
committer | 2021-03-21 18:11:50 +0000 | |
commit | 1e9a88f5b59cf7d1c4e24f48cc09aa98e5f6499b (patch) | |
tree | e458919b98af7e623be7d7ea3a088c0af7fe1c5d /bot/utils/decorators.py | |
parent | Only output override channels & bot commands channel on whitelist error (diff) |
Replace list comp with a set update + sequence
Diffstat (limited to 'bot/utils/decorators.py')
-rw-r--r-- | bot/utils/decorators.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/utils/decorators.py b/bot/utils/decorators.py index f0e2ff99..60066dc4 100644 --- a/bot/utils/decorators.py +++ b/bot/utils/decorators.py @@ -266,7 +266,7 @@ def whitelist_check(**default_kwargs: t.Container[int]) -> t.Callable[[Context], if category is None: continue - [channels.add(channel.id) for channel in category.text_channels] + channels.update(channel.id for channel in category.text_channels) if channels: channels_str = ', '.join(f"<#{c_id}>" for c_id in channels) |