Fix error on @ everyone

This commit is contained in:
Ske
2021-03-18 11:34:35 +01:00
parent 1c548e9d7b
commit 4ee0c13d62
3 changed files with 25 additions and 2 deletions

View File

@@ -83,7 +83,10 @@ namespace PluralKit.Bot
var allowedMentions = content.ParseMentions();
if (!req.AllowEveryone)
allowedMentions = allowedMentions.RemoveUnmentionableRoles(guild);
allowedMentions = allowedMentions.RemoveUnmentionableRoles(guild) with {
// also clear @everyones
Parse = Array.Empty<AllowedMentions.ParseType>()
};
var webhookReq = new ExecuteWebhookRequest
{