From 3bf120323497bfe05de0ebd21e3f2c465a5f31be Mon Sep 17 00:00:00 2001 From: rladenson Date: Mon, 18 Nov 2024 23:45:37 -0700 Subject: [PATCH] fix: show ids in pt embeds for image links --- PluralKit.Bot/Commands/Groups.cs | 4 ++-- PluralKit.Bot/Commands/MemberEdit.cs | 2 +- PluralKit.Bot/Commands/SystemEdit.cs | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/PluralKit.Bot/Commands/Groups.cs b/PluralKit.Bot/Commands/Groups.cs index e1c5986a..0716a7c6 100644 --- a/PluralKit.Bot/Commands/Groups.cs +++ b/PluralKit.Bot/Commands/Groups.cs @@ -319,7 +319,7 @@ public class Groups break; case ReplyFormat.Plaintext: var ebP = new EmbedBuilder() - .Description($"Showing avatar for group {target.NameFor(ctx)}"); + .Description($"Showing avatar for group {target.NameFor(ctx)} (`{target.DisplayHid(ctx.Config)}`)"); await ctx.Reply(text: $"<{target.Icon.TryGetCleanCdnUrl()}>", embed: ebP.Build()); break; default: @@ -393,7 +393,7 @@ public class Groups break; case ReplyFormat.Plaintext: var ebP = new EmbedBuilder() - .Description($"Showing banner for group {target.NameFor(ctx)}"); + .Description($"Showing banner for group {target.NameFor(ctx)} (`{target.DisplayHid(ctx.Config)}`)"); await ctx.Reply(text: $"<{target.BannerImage.TryGetCleanCdnUrl()}>", embed: ebP.Build()); break; default: diff --git a/PluralKit.Bot/Commands/MemberEdit.cs b/PluralKit.Bot/Commands/MemberEdit.cs index 22e60573..dc8439ff 100644 --- a/PluralKit.Bot/Commands/MemberEdit.cs +++ b/PluralKit.Bot/Commands/MemberEdit.cs @@ -236,7 +236,7 @@ public class MemberEdit break; case ReplyFormat.Plaintext: var ebP = new EmbedBuilder() - .Description($"Showing banner for member {target.NameFor(ctx)} (`{target.Id}`)"); + .Description($"Showing banner for member {target.NameFor(ctx)} (`{target.DisplayHid(ctx.Config)}`)"); await ctx.Reply(text: $"<{target.BannerImage.TryGetCleanCdnUrl()}>", embed: ebP.Build()); break; default: diff --git a/PluralKit.Bot/Commands/SystemEdit.cs b/PluralKit.Bot/Commands/SystemEdit.cs index e8b244e2..51fa3e50 100644 --- a/PluralKit.Bot/Commands/SystemEdit.cs +++ b/PluralKit.Bot/Commands/SystemEdit.cs @@ -572,7 +572,7 @@ public class SystemEdit break; case ReplyFormat.Plaintext: var ebP = new EmbedBuilder() - .Description($"Showing icon for system {target.NameFor(ctx)}"); + .Description($"Showing icon for system {target.NameFor(ctx)} (`{target.DisplayHid(ctx.Config)}`)"); await ctx.Reply(text: $"<{target.AvatarUrl.TryGetCleanCdnUrl()}>", embed: ebP.Build()); break; default: @@ -655,7 +655,7 @@ public class SystemEdit break; case ReplyFormat.Plaintext: var ebP = new EmbedBuilder() - .Description($"Showing icon for system {target.NameFor(ctx)}"); + .Description($"Showing icon for system {target.NameFor(ctx)} (`{target.DisplayHid(ctx.Config)}`)"); await ctx.Reply(text: $"<{settings.AvatarUrl.TryGetCleanCdnUrl()}>", embed: ebP.Build()); break; default: @@ -704,7 +704,7 @@ public class SystemEdit break; case ReplyFormat.Plaintext: var ebP = new EmbedBuilder() - .Description($"Showing banner for system {target.NameFor(ctx)}"); + .Description($"Showing banner for system {target.NameFor(ctx)} (`{target.DisplayHid(ctx.Config)}`)"); await ctx.Reply(text: $"<{target.BannerImage.TryGetCleanCdnUrl()}>", embed: ebP.Build()); break; default: