aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/bwmarrin/discordgo/events.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/bwmarrin/discordgo/events.go')
-rw-r--r--vendor/github.com/bwmarrin/discordgo/events.go15
1 files changed, 8 insertions, 7 deletions
diff --git a/vendor/github.com/bwmarrin/discordgo/events.go b/vendor/github.com/bwmarrin/discordgo/events.go
index e5d83b9..6608ab6 100644
--- a/vendor/github.com/bwmarrin/discordgo/events.go
+++ b/vendor/github.com/bwmarrin/discordgo/events.go
@@ -36,13 +36,13 @@ type Event struct {
// A Ready stores all data for the websocket READY event.
type Ready struct {
- Version int `json:"v"`
- SessionID string `json:"session_id"`
- User *User `json:"user"`
- Guilds []*Guild `json:"guilds"`
- PrivateChannels []*Channel `json:"private_channels"`
-
- // TODO: Application and Shard
+ Version int `json:"v"`
+ SessionID string `json:"session_id"`
+ User *User `json:"user"`
+ Shard *[2]int `json:"shard"`
+ Application *Application `json:"application"`
+ Guilds []*Guild `json:"guilds"`
+ PrivateChannels []*Channel `json:"private_channels"`
}
// ChannelCreate is the data for a ChannelCreate event.
@@ -150,6 +150,7 @@ type GuildMemberAdd struct {
// GuildMemberUpdate is the data for a GuildMemberUpdate event.
type GuildMemberUpdate struct {
*Member
+ BeforeUpdate *Member `json:"-"`
}
// GuildMemberRemove is the data for a GuildMemberRemove event.