From 301afe2c8d23fcd6c21334ae33d6b75c472caeb7 Mon Sep 17 00:00:00 2001 From: Noikoio Date: Fri, 8 Mar 2019 19:00:42 -0800 Subject: [PATCH] Actually fix deafened entry bug --- RegexBot/Module/VoiceRoleSync/VoiceRoleSync.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RegexBot/Module/VoiceRoleSync/VoiceRoleSync.cs b/RegexBot/Module/VoiceRoleSync/VoiceRoleSync.cs index 99846f7..c1e0914 100644 --- a/RegexBot/Module/VoiceRoleSync/VoiceRoleSync.cs +++ b/RegexBot/Module/VoiceRoleSync/VoiceRoleSync.cs @@ -39,7 +39,7 @@ namespace Noikoio.RegexBot.Module.VoiceRoleSync // Replace roles only if the roles to be applied are different. if (settingBefore != null && user.Roles.Contains(settingBefore)) await user.RemoveRoleAsync(settingBefore); if (settingAfter != null && !user.Roles.Contains(settingAfter) && - (after.IsDeafened || after.IsSelfDeafened)) await user.AddRoleAsync(settingAfter); + (!(after.IsDeafened || after.IsSelfDeafened))) await user.AddRoleAsync(settingAfter); } } else