mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
fix: show displayname field even when member name is private
This commit is contained in:
parent
36e242986d
commit
ec6d4865cb
1 changed files with 4 additions and 5 deletions
|
|
@ -344,11 +344,10 @@ 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)*"
|
));
|
||||||
));
|
|
||||||
|
|
||||||
if (ctx.Guild != null)
|
if (ctx.Guild != null)
|
||||||
eb.Field(new Embed.Field($"Server Name (in {ctx.Guild.Name})",
|
eb.Field(new Embed.Field($"Server Name (in {ctx.Guild.Name})",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue