Add GuildID to multiple structs (#541)

This commit is contained in:
Dim 2018-05-02 20:07:23 -04:00 committed by Chris Rhodes
parent 2bc32439c4
commit 82c8cf21b2
3 changed files with 7 additions and 0 deletions

View file

@ -70,6 +70,7 @@ type ChannelDelete struct {
type ChannelPinsUpdate struct { type ChannelPinsUpdate struct {
LastPinTimestamp string `json:"last_pin_timestamp"` LastPinTimestamp string `json:"last_pin_timestamp"`
ChannelID string `json:"channel_id"` ChannelID string `json:"channel_id"`
GuildID string `json:"guild_id,omitempty"`
} }
// GuildCreate is the data for a GuildCreate event. // GuildCreate is the data for a GuildCreate event.
@ -212,6 +213,7 @@ type RelationshipRemove struct {
type TypingStart struct { type TypingStart struct {
UserID string `json:"user_id"` UserID string `json:"user_id"`
ChannelID string `json:"channel_id"` ChannelID string `json:"channel_id"`
GuildID string `json:"guild_id,omitempty"`
Timestamp int `json:"timestamp"` Timestamp int `json:"timestamp"`
} }
@ -250,4 +252,5 @@ type VoiceStateUpdate struct {
type MessageDeleteBulk struct { type MessageDeleteBulk struct {
Messages []string `json:"ids"` Messages []string `json:"ids"`
ChannelID string `json:"channel_id"` ChannelID string `json:"channel_id"`
GuildID string `json:"guild_id"`
} }

View file

@ -38,6 +38,9 @@ type Message struct {
// The ID of the channel in which the message was sent. // The ID of the channel in which the message was sent.
ChannelID string `json:"channel_id"` ChannelID string `json:"channel_id"`
// The ID of the guild in which the message was sent.
GuildID string `json:"guild_id,omitempty"`
// The content of the message. // The content of the message.
Content string `json:"content"` Content string `json:"content"`

View file

@ -813,6 +813,7 @@ type MessageReaction struct {
MessageID string `json:"message_id"` MessageID string `json:"message_id"`
Emoji Emoji `json:"emoji"` Emoji Emoji `json:"emoji"`
ChannelID string `json:"channel_id"` ChannelID string `json:"channel_id"`
GuildID string `json:"guild_id,omitempty"`
} }
// GatewayBotResponse stores the data for the gateway/bot response // GatewayBotResponse stores the data for the gateway/bot response