Roles are returned upon a rejoin even if the member is role-muted
Octol1ttle opened this issue · comments
Description
In the code that returns roles when a member rejoins (GuildMemberJoinedResponder), there is no check to skip returning roles if the member is role-muted.
Reproduction Steps
- Mute a member
- Ask that member to rejoin
- Their roles will be returned and the mute role will be gone
Expected behavior
Only the mute role will be returned
Actual behavior
All roles will be returned
Known Workarounds
No response
Configuration
No response
Other information
No response
Expected behavior
Only the mute role will be returned
Don't forget about RemoveRolesOnMute
setting.