Browse Source

events: add BeforeDelete to MessageDelete

Alexander 5 years ago
parent
commit
d41f0ec7e0
1 changed files with 1 additions and 0 deletions
  1. 1 0
      events.go

+ 1 - 0
events.go

@@ -169,6 +169,7 @@ type MessageUpdate struct {
 // MessageDelete is the data for a MessageDelete event.
 type MessageDelete struct {
 	*Message
+	BeforeDelete *Message `json:"-"`
 }
 
 // MessageReactionAdd is the data for a MessageReactionAdd event.