diff options
author | 2021-06-18 20:41:50 +0100 | |
---|---|---|
committer | 2021-06-18 20:41:50 +0100 | |
commit | d1ba19ab849aa21944fb12b23925f61b454bfd09 (patch) | |
tree | 4b6ec489db96d60aade53adf7cc368f75d132ba7 | |
parent | Update LinePaginator with new Paginator param added in d.py 1.7 (diff) |
Don't voice verify ping users who join a stage channel
-rw-r--r-- | bot/exts/moderation/voice_gate.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bot/exts/moderation/voice_gate.py b/bot/exts/moderation/voice_gate.py index 94b23a344..84ffc3ee7 100644 --- a/bot/exts/moderation/voice_gate.py +++ b/bot/exts/moderation/voice_gate.py @@ -254,6 +254,10 @@ class VoiceGate(Cog): log.trace("User not in a voice channel. Ignore.") return + if isinstance(after.channel, discord.StageChannel): + log.trace("User joined a stage chanel. Ignore.") + return + # To avoid race conditions, checking if the user should receive a notification # and sending it if appropriate is delegated to an atomic helper notification_sent, message_channel = await self._ping_newcomer(member) |