Parcourir la source

events: add BeforeDelete to MessageDelete

Alexander il y a 5 ans
Parent
commit
d41f0ec7e0
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  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.