diff options
| author | 2020-11-24 21:15:09 +0300 | |
|---|---|---|
| committer | 2020-11-24 21:15:09 +0300 | |
| commit | 7f44647e4cff507ffed200a4f29edb18775d4388 (patch) | |
| tree | 68de8db2839491418257c3212599e38a8bd47b3d | |
| parent | Fixes Typo in Silence Tests (diff) | |
Adds Connect to Reset Permissions
During unsilencing, if the previous channel overwrites are None, the
channel should default to None for all relevant permissions. Adds the
connect permission as it was missing.
Signed-off-by: Hassan Abouelela <[email protected]>
| -rw-r--r-- | bot/exts/moderation/silence.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/moderation/silence.py b/bot/exts/moderation/silence.py index fd051a0ff..e13911d9e 100644 --- a/bot/exts/moderation/silence.py +++ b/bot/exts/moderation/silence.py @@ -333,7 +333,7 @@ class Silence(commands.Cog): if prev_overwrites is None: log.info(f"Missing previous overwrites for #{channel} ({channel.id}); defaulting to None.") - overwrite.update(send_messages=None, add_reactions=None, speak=None) + overwrite.update(send_messages=None, add_reactions=None, speak=None, connect=None) else: overwrite.update(**json.loads(prev_overwrites)) @@ -360,7 +360,7 @@ class Silence(commands.Cog): else: await self._mod_alerts_channel.send( f"<@&{Roles.admins}> Restored overwrites with default values after unsilencing " - f"{channel.mention}. Please check that the `Speak` " + f"{channel.mention}. Please check that the `Speak` and `Connect`" f"overwrites for {self._verified_voice_role.mention} are at their desired values." ) |