aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-10-18 14:46:11 +0300
committerGravatar GitHub <[email protected]>2020-10-18 14:46:11 +0300
commit3c09836736711de1d25e270c643299e0290eb636 (patch)
tree8928a07668ebc9eb5539294b028376260aa7e50d
parentFix grammar and wording of Voice Gate + Voice Ban (diff)
Remove checking does user have voice verified role for voice ban
Co-authored-by: Joe Banks <[email protected]>
-rw-r--r--bot/exts/moderation/infraction/infractions.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/bot/exts/moderation/infraction/infractions.py b/bot/exts/moderation/infraction/infractions.py
index f2ca6a763..d41e6326e 100644
--- a/bot/exts/moderation/infraction/infractions.py
+++ b/bot/exts/moderation/infraction/infractions.py
@@ -359,10 +359,6 @@ class Infractions(InfractionScheduler, commands.Cog):
@respect_role_hierarchy(member_arg=2)
async def apply_voice_ban(self, ctx: Context, user: UserSnowflake, reason: t.Optional[str], **kwargs) -> None:
"""Apply a voice ban infraction with kwargs passed to `post_infraction`."""
- if constants.Roles.voice_verified not in [role.id for role in user.roles]:
- await ctx.send(":x: Can't apply Voice Ban to user who have not passed the Voice Gate.")
- return
-
if await _utils.get_active_infraction(ctx, user, "voice_ban"):
return