Move channel mention into description

This commit is contained in:
Dustin Pianalto 2020-06-02 23:43:27 -08:00
parent a4ed26c128
commit 0e7998c7cd

View File

@ -28,10 +28,10 @@ func OnMessageUpdate(session *discordgo.Session, m *discordgo.MessageUpdate) {
} }
embed := &discordgo.MessageEmbed{ embed := &discordgo.MessageEmbed{
Title: fmt.Sprintf("Edited Message: %v", m.ID), Title: fmt.Sprintf("Edited Message: %v", m.ID),
Description: fmt.Sprintf("**Before:** %v\n**After:** %v", m.BeforeUpdate.Content, m.Content), Description: fmt.Sprintf("**Before:** %v\n**After:** %v\nIn Channel: %v", m.BeforeUpdate.Content, m.Content, channel.Mention()),
Color: session.State.UserColor(m.Author.ID, channelID), Color: session.State.UserColor(m.Author.ID, channelID),
Footer: &discordgo.MessageEmbedFooter{ Footer: &discordgo.MessageEmbedFooter{
Text: fmt.Sprintf("Author: %v Channel: %v", m.Author.String(), channel.Mention()), Text: fmt.Sprintf("Author: %v", m.Author.String()),
IconURL: m.Author.AvatarURL(""), IconURL: m.Author.AvatarURL(""),
}, },
} }