TeamOctolings / Octobot

A general-purpose Discord bot for moderation written in C#

Home Page:https://teamoctolings.github.io/Octobot/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

  1. Mute a member
  2. Ask that member to rejoin
  3. 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.