use jump links in bot log instead of channel link

This commit is contained in:
13xforever
2026-01-09 22:41:49 +05:00
parent 30a1c637b7
commit 1871815f6d

View File

@@ -256,7 +256,7 @@ public static class DiscordClientExtensions
Title = infraction,
Color = GetColor(severity),
}.AddField("Violator", author is null ? message.Author.Mention : GetMentionWithNickname(author), true)
.AddField("Channel", message.Channel.IsPrivate ? "Bot's DM" : message.Channel.Mention, true);
.AddField("Channel", message.Channel.IsPrivate ? "Bot's DM" : message.JumpLink.ToString(), true);
if (filterId is not null)
result.AddField("Filter #", filterId.ToString(), true);
result.AddField("Content of the offending item", content.Trim(EmbedPager.MaxFieldLength));