From 3471f7f28c24ae1f319182a718ff665f9d798a3f Mon Sep 17 00:00:00 2001 From: Ske Date: Sun, 21 Mar 2021 23:05:56 +0100 Subject: [PATCH] Fix error when proxying duplicate pings --- PluralKit.Bot/Utils/DiscordUtils.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PluralKit.Bot/Utils/DiscordUtils.cs b/PluralKit.Bot/Utils/DiscordUtils.cs index c581c12b..9be30f4e 100644 --- a/PluralKit.Bot/Utils/DiscordUtils.cs +++ b/PluralKit.Bot/Utils/DiscordUtils.cs @@ -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 }; }