mirror of
https://github.com/RPCS3/discord-bot.git
synced 2026-01-31 01:25:22 +01:00
use jump links in bot log instead of channel link
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user