forked from TeamInklings/Octobot
Change position of "Jump to ..." action for better consistency (#279)
This will better align with how a normal moderator would respond to the log: Before: "see log" -> "jump to message without knowing what changed" -> "read message diff" After: "see log" -> "read message diff" -> "jump to message for context" In addition, the change improves consistency with how reminders are shown. --------- Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
parent
0a930dcab1
commit
5cc04e9cc3
2 changed files with 10 additions and 8 deletions
|
@ -83,10 +83,11 @@ public class MessageDeletedResponder : IResponder<IMessageDelete>
|
|||
|
||||
Messages.Culture = GuildSettings.Language.Get(cfg);
|
||||
|
||||
var builder = new StringBuilder().AppendLine(
|
||||
string.Format(Messages.DescriptionActionJumpToChannel,
|
||||
Mention.Channel(gatewayEvent.ChannelID)))
|
||||
.AppendLine(message.Content.InBlockCode());
|
||||
var builder = new StringBuilder()
|
||||
.AppendLine(message.Content.InBlockCode())
|
||||
.AppendLine(
|
||||
string.Format(Messages.DescriptionActionJumpToChannel, Mention.Channel(gatewayEvent.ChannelID))
|
||||
);
|
||||
|
||||
var embed = new EmbedBuilder()
|
||||
.WithSmallTitle(
|
||||
|
|
|
@ -101,10 +101,11 @@ public class MessageEditedResponder : IResponder<IMessageUpdate>
|
|||
|
||||
Messages.Culture = GuildSettings.Language.Get(cfg);
|
||||
|
||||
var builder = new StringBuilder().AppendLine(
|
||||
string.Format(Messages.DescriptionActionJumpToMessage,
|
||||
$"https://discord.com/channels/{guildId}/{channelId}/{messageId}"))
|
||||
.AppendLine(diff.AsMarkdown());
|
||||
var builder = new StringBuilder()
|
||||
.AppendLine(diff.AsMarkdown())
|
||||
.AppendLine(string.Format(Messages.DescriptionActionJumpToMessage,
|
||||
$"https://discord.com/channels/{guildId}/{channelId}/{messageId}")
|
||||
);
|
||||
|
||||
var embed = new EmbedBuilder()
|
||||
.WithSmallTitle(string.Format(Messages.CachedMessageEdited, message.Author.GetTag()), message.Author)
|
||||
|
|
Reference in a new issue