Skip to content

Commit

Permalink
Ignore all message updates that don't really edit the message (#1730)
Browse files Browse the repository at this point in the history
Co-authored-by: Ashish <ashishjh-bst@users.noreply.github.com>
  • Loading branch information
ashishjh-bst and ashishjh-bst authored Sep 25, 2024
1 parent bd8f9d2 commit 2b89b95
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bot/discordevents.go
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,9 @@ func HandleMessageCreateUpdateFirst(evt *eventsystem.EventData) {
if !IsNormalUserMessage(edit.Message) {
return
}
if edit.EditedTimestamp == "" {
return
}

edit.Member.User = edit.Author
edit.Member.GuildID = edit.GuildID
Expand Down

0 comments on commit 2b89b95

Please sign in to comment.