1
0
Fork 1
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:
Macintxsh 2023-09-27 22:29:07 +03:00
parent e8c72080ba
commit 758f464712
Signed by: mctaylors
GPG key ID: 361D326747B61E65

View file

@ -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()));
}