1
0
Fork 1
mirror of https://github.com/TeamOctolings/Octobot.git synced 2025-04-20 00:43:36 +03:00

change: add "Jump to Message" action *after* the memssage diff

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
Octol1ttle 2024-03-20 19:57:02 +05:00
parent 0a930dcab1
commit 5669435bb7
Signed by: Octol1ttle
GPG key ID: B77C34313AEE1FFF

View file

@ -101,10 +101,11 @@ public class MessageEditedResponder : IResponder<IMessageUpdate>
Messages.Culture = GuildSettings.Language.Get(cfg); Messages.Culture = GuildSettings.Language.Get(cfg);
var builder = new StringBuilder().AppendLine( var builder = new StringBuilder()
string.Format(Messages.DescriptionActionJumpToMessage, .AppendLine(diff.AsMarkdown())
$"https://discord.com/channels/{guildId}/{channelId}/{messageId}")) .AppendLine(string.Format(Messages.DescriptionActionJumpToMessage,
.AppendLine(diff.AsMarkdown()); $"https://discord.com/channels/{guildId}/{channelId}/{messageId}")
);
var embed = new EmbedBuilder() var embed = new EmbedBuilder()
.WithSmallTitle(string.Format(Messages.CachedMessageEdited, message.Author.GetTag()), message.Author) .WithSmallTitle(string.Format(Messages.CachedMessageEdited, message.Author.GetTag()), message.Author)