mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +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
|
||||
)));
|
||||
|
||||
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…
Add table
Add a link
Reference in a new issue