Fix error when proxying duplicate pings
This commit is contained in:
parent
c02a7572b3
commit
3471f7f28c
@ -106,8 +106,8 @@ namespace PluralKit.Bot
|
|||||||
|
|
||||||
return new AllowedMentions
|
return new AllowedMentions
|
||||||
{
|
{
|
||||||
Users = users.ToArray(),
|
Users = users.Distinct().ToArray(),
|
||||||
Roles = roles.ToArray(),
|
Roles = roles.Distinct().ToArray(),
|
||||||
Parse = everyone ? new[] {AllowedMentions.ParseType.Everyone} : null
|
Parse = everyone ? new[] {AllowedMentions.ParseType.Everyone} : null
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user