mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
Fix error on @ everyone
This commit is contained in:
parent
1c548e9d7b
commit
4ee0c13d62
3 changed files with 25 additions and 2 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue