mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
fix: don't show discord user's guild nickname if not allowed to see message content
This commit is contained in:
parent
917aacc4f4
commit
183779e055
1 changed files with 1 additions and 1 deletions
|
|
@ -351,7 +351,7 @@ public class EmbedService
|
|||
|
||||
// Calculate string displayed under "Sent by"
|
||||
string userStr;
|
||||
if (memberInfo != null && memberInfo.Nick != null)
|
||||
if (showContent && memberInfo != null && memberInfo.Nick != null)
|
||||
userStr = $"**Username:** {userInfo.NameAndMention()}\n**Nickname:** {memberInfo.Nick}";
|
||||
else if (userInfo != null) userStr = userInfo.NameAndMention();
|
||||
else userStr = $"*(deleted user {msg.Message.Sender})*";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue