mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-04-20 00:43:36 +03:00
Return roles if member is not muted
This commit is contained in:
parent
e8c72080ba
commit
758f464712
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ public class GuildMemberJoinedResponder : IResponder<IGuildMemberAdd>
|
|||
|
||||
var assignRoles = new List<Snowflake>();
|
||||
|
||||
if (!GuildSettings.RemoveRolesOnMute.Get(cfg))
|
||||
if (!GuildSettings.RemoveRolesOnMute.Get(cfg) || memberData.MutedUntil is null)
|
||||
{
|
||||
assignRoles.AddRange(memberData.Roles.ConvertAll(r => r.ToSnowflake()));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue