ignore edits if content equal
This commit is contained in:
parent
239923e298
commit
76316016b5
1 changed files with 4 additions and 0 deletions
|
@ -38,6 +38,10 @@ func MessageUpdate(session *discordgo.Session, msg *discordgo.MessageUpdate) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if msg.Content == msg.BeforeUpdate.Content {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
channel, err := session.State.Channel(msg.ChannelID)
|
channel, err := session.State.Channel(msg.ChannelID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue