Browse Source

events: add BeforeDelete to MessageDelete

Alexander 5 năm trước cách đây
mục cha
commit
d41f0ec7e0
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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.