nullcheck msg.BeforeUpdate

This commit is contained in:
Cynthia Foxwell 2023-07-16 13:12:51 -06:00
parent 76316016b5
commit 651b2a8e68
1 changed files with 1 additions and 1 deletions

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
}