nullcheck msg.BeforeUpdate

This commit is contained in:
Cynthia Foxwell 2023-07-16 13:12:51 -06:00
parent 76316016b5
commit 651b2a8e68

View file

@ -38,7 +38,7 @@ func MessageUpdate(session *discordgo.Session, msg *discordgo.MessageUpdate) {
return
}
if msg.Content == msg.BeforeUpdate.Content {
if msg.BeforeUpdate != nil && msg.Content == msg.BeforeUpdate.Content {
return
}