diff options
author | Jordan <me@jordan.im> | 2023-08-18 00:08:21 -0700 |
---|---|---|
committer | Jordan <me@jordan.im> | 2023-08-18 00:08:21 -0700 |
commit | 61553158764c6801578076c72d8bffb423e343cc (patch) | |
tree | 5d45cf4b6699eebf01e9f2b6ac9ff0000819ebd2 /vendor/github.com/bwmarrin/discordgo/events.go | |
parent | 001a042ccba1c3faf340d8217ee8d15efa60dc05 (diff) | |
download | keep-61553158764c6801578076c72d8bffb423e343cc.tar.gz keep-61553158764c6801578076c72d8bffb423e343cc.zip |
misc: go get -u; go mod tidy; go mod vendor
Diffstat (limited to 'vendor/github.com/bwmarrin/discordgo/events.go')
-rw-r--r-- | vendor/github.com/bwmarrin/discordgo/events.go | 15 |
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. |