Explorar el Código

events: add BeforeDelete to MessageDelete

Alexander hace 5 años
padre
commit
d41f0ec7e0
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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.