ソースを参照

events: add BeforeDelete to MessageDelete

Alexander 5 年 前
コミット
d41f0ec7e0
1 ファイル変更1 行追加0 行削除
  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.