fix: show displayname field even when member name is private
This commit is contained in:
parent
36e242986d
commit
ec6d4865cb
@ -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})",
|
||||
|
Loading…
Reference in New Issue
Block a user