From 183779e055422158ec71f1155b862baec321fbec Mon Sep 17 00:00:00 2001 From: spiral Date: Sun, 24 Apr 2022 14:43:27 -0400 Subject: [PATCH] fix: don't show discord user's guild nickname if not allowed to see message content --- PluralKit.Bot/Services/EmbedService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PluralKit.Bot/Services/EmbedService.cs b/PluralKit.Bot/Services/EmbedService.cs index f76d33a3..65167f26 100644 --- a/PluralKit.Bot/Services/EmbedService.cs +++ b/PluralKit.Bot/Services/EmbedService.cs @@ -351,7 +351,7 @@ public class EmbedService // Calculate string displayed under "Sent by" string userStr; - if (memberInfo != null && memberInfo.Nick != null) + if (showContent && memberInfo != null && memberInfo.Nick != null) userStr = $"**Username:** {userInfo.NameAndMention()}\n**Nickname:** {memberInfo.Nick}"; else if (userInfo != null) userStr = userInfo.NameAndMention(); else userStr = $"*(deleted user {msg.Message.Sender})*";