events: add BeforeDelete to MessageDelete

This commit is contained in:
Alexander 2020-03-01 20:46:23 +03:00
parent d4610f32c1
commit d41f0ec7e0
No known key found for this signature in database
GPG key ID: 2BE3B565246D1171

View file

@ -169,6 +169,7 @@ type MessageUpdate struct {
// MessageDelete is the data for a MessageDelete event. // MessageDelete is the data for a MessageDelete event.
type MessageDelete struct { type MessageDelete struct {
*Message *Message
BeforeDelete *Message `json:"-"`
} }
// MessageReactionAdd is the data for a MessageReactionAdd event. // MessageReactionAdd is the data for a MessageReactionAdd event.