diff options
author | 2022-01-27 23:07:26 +0100 | |
---|---|---|
committer | 2022-01-27 23:07:26 +0100 | |
commit | cf9e0157639875de8984c7365f02d19052d8df9e (patch) | |
tree | 202f24648e6f647b163ce93ab08fc931b2e8e3fd | |
parent | Add embed message mentioning help channel claimant (diff) | |
parent | Use `voice_gate_blocked` field from API for voice_gate (diff) |
Merge pull request #2064 from python-discord/fix-voice-gate
Use `voice_gate_blocked` field from API for voice_gate
-rw-r--r-- | bot/exts/moderation/voice_gate.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/moderation/voice_gate.py b/bot/exts/moderation/voice_gate.py index 42505b8e7..fa66b00dd 100644 --- a/bot/exts/moderation/voice_gate.py +++ b/bot/exts/moderation/voice_gate.py @@ -30,7 +30,7 @@ FAILED_MESSAGE = ( MESSAGE_FIELD_MAP = { "joined_at": f"have been on the server for less than {GateConf.minimum_days_member} days", - "voice_muted": "have an active voice mute infraction", + "voice_gate_blocked": "have an active voice infraction", "total_messages": f"have sent less than {GateConf.minimum_messages} messages", "activity_blocks": f"have been active for fewer than {GateConf.minimum_activity_blocks} ten-minute blocks", } @@ -170,7 +170,7 @@ class VoiceGate(Cog): ctx.author.joined_at > arrow.utcnow() - timedelta(days=GateConf.minimum_days_member) ), "total_messages": data["total_messages"] < GateConf.minimum_messages, - "voice_muted": data["voice_muted"], + "voice_gate_blocked": data["voice_gate_blocked"], "activity_blocks": data["activity_blocks"] < GateConf.minimum_activity_blocks, } |