diff options
author | 2023-03-20 14:04:51 +0200 | |
---|---|---|
committer | 2023-03-20 14:04:51 +0200 | |
commit | 8e63fd916fbdb4cf5c7c8e5d305d4beac07f3086 (patch) | |
tree | bda6f264c558ddbfdcc77a2ec78314b41f36b4ed | |
parent | Add role hierarchy guards for timeouts (diff) |
Don't manually move timed out users
The timeout already natively handles blocking voice channels and removing the user from them.
-rw-r--r-- | bot/exts/moderation/infraction/infractions.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/bot/exts/moderation/infraction/infractions.py b/bot/exts/moderation/infraction/infractions.py index d8c997755..4ec9e41c7 100644 --- a/bot/exts/moderation/infraction/infractions.py +++ b/bot/exts/moderation/infraction/infractions.py @@ -445,9 +445,6 @@ class Infractions(InfractionScheduler, commands.Cog): await user.edit(timed_out_until=duration_or_expiry, reason=reason) - log.trace(f"Attempting to kick {user} from voice because they've been timed out.") - await user.move_to(None, reason=reason) - await self.apply_infraction(ctx, infraction, user, action) @respect_role_hierarchy(member_arg=2) |