mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
Fix system card lookup in DMs
This commit is contained in:
parent
ffe7400539
commit
1720a28af2
1 changed files with 8 additions and 4 deletions
|
|
@ -84,11 +84,15 @@ namespace PluralKit.Bot {
|
|||
if (system.Tag != null)
|
||||
eb.Field(new("Tag", system.Tag.EscapeMarkdown(), true));
|
||||
|
||||
if (cctx.MessageContext.SystemGuildTag != null && cctx.MessageContext.TagEnabled)
|
||||
eb.Field(new($"Tag (in server '{cctx.Guild.Name}')", cctx.MessageContext.SystemGuildTag.EscapeMarkdown(), true));
|
||||
if (cctx.Guild != null)
|
||||
{
|
||||
if (cctx.MessageContext.SystemGuildTag != null && cctx.MessageContext.TagEnabled)
|
||||
eb.Field(new($"Tag (in server '{cctx.Guild.Name}')", cctx.MessageContext.SystemGuildTag
|
||||
.EscapeMarkdown(), true));
|
||||
|
||||
if (!cctx.MessageContext.TagEnabled)
|
||||
eb.Field(new($"Tag (in server '{cctx.Guild.Name}')", "*(tag is disabled in this server)*"));
|
||||
if (!cctx.MessageContext.TagEnabled)
|
||||
eb.Field(new($"Tag (in server '{cctx.Guild.Name}')", "*(tag is disabled in this server)*"));
|
||||
}
|
||||
|
||||
if (!system.Color.EmptyOrNull()) eb.Field(new("Color", $"#{system.Color}", true));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue