fix: show displayname field even when member name is private
This commit is contained in:
parent
36e242986d
commit
ec6d4865cb
@ -344,8 +344,7 @@ public class MemberEdit
|
|||||||
(!showDisplayName || target.DisplayName == null) && memberGuildConfig?.DisplayName == null
|
(!showDisplayName || target.DisplayName == null) && memberGuildConfig?.DisplayName == null
|
||||||
)));
|
)));
|
||||||
|
|
||||||
if (showDisplayName)
|
eb.Field(new Embed.Field("Display name", (target.DisplayName != null && showDisplayName)
|
||||||
eb.Field(new Embed.Field("Display name", target.DisplayName != null
|
|
||||||
? boldIf(target.DisplayName, memberGuildConfig?.DisplayName == null)
|
? boldIf(target.DisplayName, memberGuildConfig?.DisplayName == null)
|
||||||
: "*(none)*"
|
: "*(none)*"
|
||||||
));
|
));
|
||||||
|
Loading…
Reference in New Issue
Block a user