bot
bot copied to clipboard
Automatically apply pardoned timeouts upon rejoining the server
This has been originally raised by @vivekashok1221 here
The current scenario is this
Scenario
- A user is muted for 4 days
- The user leaves the server
- Someone with the right perms pardons the unmute
- The user rejoins the server
Problem
Step 3 will only pardon the infraction in our database, but the native discord timeout will still remain in place since we cannot edit that when a user is not a Member of our server.
This means that someone would have to manually unmute the user.
This should probably just require adding something like
elif <user_has_timeout>:
<remove_user_timeout>
here https://github.com/python-discord/bot/blob/3c7701a64c708ad1c4acf0c8604400721aee830c/bot/exts/moderation/infraction/infractions.py#L650-L672
@lxnn Hi, any update on this?
Hi @wookie184, I'm so sorry. I only got as far as starting to familiarise myself with the codebase to work on this issue and then it fell by the way-side. I've un-assigned myself from the issue.