From 8f9c71edf1f6be8d6e60d03adec3b9e0f4ccee7f Mon Sep 17 00:00:00 2001 From: Octol1ttle Date: Thu, 2 Feb 2023 19:51:55 +0500 Subject: [PATCH] Do not delete messages from role-muted members Signed-off-by: Octol1ttle --- CommandProcessor.cs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/CommandProcessor.cs b/CommandProcessor.cs index 739ab4d..4f13f16 100644 --- a/CommandProcessor.cs +++ b/CommandProcessor.cs @@ -18,9 +18,9 @@ public sealed class CommandProcessor { }; private readonly StringBuilder _stackedPrivateFeedback = new(); - private readonly StringBuilder _stackedPublicFeedback = new(); - private readonly StringBuilder _stackedReplyMessage = new(); - private readonly List _tasks = new(); + private readonly StringBuilder _stackedPublicFeedback = new(); + private readonly StringBuilder _stackedReplyMessage = new(); + private readonly List _tasks = new(); public readonly SocketCommandContext Context; @@ -35,11 +35,6 @@ public sealed class CommandProcessor { var data = GuildData.Get(guild); Utils.SetCurrentLanguage(guild); - if (GetMember().Roles.Contains(data.MuteRole)) { - _ = Context.Message.DeleteAsync(); - return; - } - var list = Context.Message.Content.Split("\n"); var cleanList = Context.Message.CleanContent.Split("\n"); for (var i = 0; i < list.Length; i++)