mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-01-31 09:09:00 +03:00
Do not delete messages from role-muted members
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
parent
8518db5b2f
commit
8f9c71edf1
1 changed files with 3 additions and 8 deletions
|
@ -35,11 +35,6 @@ public sealed class CommandProcessor {
|
||||||
var data = GuildData.Get(guild);
|
var data = GuildData.Get(guild);
|
||||||
Utils.SetCurrentLanguage(guild);
|
Utils.SetCurrentLanguage(guild);
|
||||||
|
|
||||||
if (GetMember().Roles.Contains(data.MuteRole)) {
|
|
||||||
_ = Context.Message.DeleteAsync();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
var list = Context.Message.Content.Split("\n");
|
var list = Context.Message.Content.Split("\n");
|
||||||
var cleanList = Context.Message.CleanContent.Split("\n");
|
var cleanList = Context.Message.CleanContent.Split("\n");
|
||||||
for (var i = 0; i < list.Length; i++)
|
for (var i = 0; i < list.Length; i++)
|
||||||
|
|
Loading…
Reference in a new issue