aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2021-05-10 20:23:50 +0300
committerGravatar Hassan Abouelela <[email protected]>2021-05-10 20:23:50 +0300
commit52bfbf314c4a0de8b6de434718589d484a6da95c (patch)
tree4cbcf332fc70b720a5672af49a91d5391a3114ff
parentRestructures Silence Cog (diff)
Rename `Manual` Variable To Clarify Intentions
Signed-off-by: Hassan Abouelela <[email protected]>
-rw-r--r--bot/exts/moderation/silence.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/exts/moderation/silence.py b/bot/exts/moderation/silence.py
index 289072e8b..2012d75d9 100644
--- a/bot/exts/moderation/silence.py
+++ b/bot/exts/moderation/silence.py
@@ -259,13 +259,13 @@ class Silence(commands.Cog):
if not await self._unsilence(channel):
if isinstance(channel, VoiceChannel):
overwrite = channel.overwrites_for(self._verified_voice_role)
- manual = overwrite.speak is False
+ has_channel_overwrites = overwrite.speak is False
else:
overwrite = channel.overwrites_for(self._everyone_role)
- manual = overwrite.send_messages is False or overwrite.add_reactions is False
+ has_channel_overwrites = overwrite.send_messages is False or overwrite.add_reactions is False
# Send fail message to muted channel or voice chat channel, and invocation channel
- if manual:
+ if has_channel_overwrites:
await self.send_message(MSG_UNSILENCE_MANUAL, msg_channel, channel, alert_target=False)
else:
await self.send_message(MSG_UNSILENCE_FAIL, msg_channel, channel, alert_target=False)