fix: show displayname field even when member name is private

This commit is contained in:
spiral 2022-03-30 05:21:26 -04:00
parent 36e242986d
commit ec6d4865cb
No known key found for this signature in database
GPG Key ID: 244A11E4B0BCF40E

View File

@ -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})",