ignore edits if content equal

This commit is contained in:
Cynthia Foxwell 2023-07-16 00:22:04 -06:00
parent 239923e298
commit 76316016b5
1 changed files with 4 additions and 0 deletions

View File

@ -38,6 +38,10 @@ func MessageUpdate(session *discordgo.Session, msg *discordgo.MessageUpdate) {
return
}
if msg.Content == msg.BeforeUpdate.Content {
return
}
channel, err := session.State.Channel(msg.ChannelID)
if err != nil {
return