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,8 +344,7 @@ public class MemberEdit
(!showDisplayName || target.DisplayName == null) && memberGuildConfig?.DisplayName == null
)));
if (showDisplayName)
eb.Field(new Embed.Field("Display name", target.DisplayName != null
eb.Field(new Embed.Field("Display name", (target.DisplayName != null && showDisplayName)
? boldIf(target.DisplayName, memberGuildConfig?.DisplayName == null)
: "*(none)*"
));