From ec6d4865cbe542dcfe18f7fb8b783d7cee2ad7cb Mon Sep 17 00:00:00 2001 From: spiral Date: Wed, 30 Mar 2022 05:21:26 -0400 Subject: [PATCH] fix: show displayname field even when member name is private --- PluralKit.Bot/Commands/MemberEdit.cs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/PluralKit.Bot/Commands/MemberEdit.cs b/PluralKit.Bot/Commands/MemberEdit.cs index 9a2bcdd1..2d027145 100644 --- a/PluralKit.Bot/Commands/MemberEdit.cs +++ b/PluralKit.Bot/Commands/MemberEdit.cs @@ -344,11 +344,10 @@ public class MemberEdit (!showDisplayName || target.DisplayName == null) && memberGuildConfig?.DisplayName == null ))); - if (showDisplayName) - eb.Field(new Embed.Field("Display name", target.DisplayName != null - ? boldIf(target.DisplayName, memberGuildConfig?.DisplayName == null) - : "*(none)*" - )); + eb.Field(new Embed.Field("Display name", (target.DisplayName != null && showDisplayName) + ? boldIf(target.DisplayName, memberGuildConfig?.DisplayName == null) + : "*(none)*" + )); if (ctx.Guild != null) eb.Field(new Embed.Field($"Server Name (in {ctx.Guild.Name})",