Explorar o código

events: add BeforeDelete to MessageDelete

Alexander %!s(int64=5) %!d(string=hai) anos
pai
achega
d41f0ec7e0
Modificáronse 1 ficheiros con 1 adicións e 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.