Fix error when proxying duplicate pings

This commit is contained in:
Ske 2021-03-21 23:05:56 +01:00
parent c02a7572b3
commit 3471f7f28c

View File

@ -106,8 +106,8 @@ namespace PluralKit.Bot
return new AllowedMentions
{
Users = users.ToArray(),
Roles = roles.ToArray(),
Users = users.Distinct().ToArray(),
Roles = roles.Distinct().ToArray(),
Parse = everyone ? new[] {AllowedMentions.ParseType.Everyone} : null
};
}