Skip to content

Commit

Permalink
Add GuildID to multiple structs (bwmarrin#541)
Browse files Browse the repository at this point in the history
  • Loading branch information
xDimGG authored and iopred committed May 3, 2018
1 parent 2bc3243 commit 82c8cf2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions events.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ type ChannelDelete struct {
type ChannelPinsUpdate struct {
LastPinTimestamp string `json:"last_pin_timestamp"`
ChannelID string `json:"channel_id"`
GuildID string `json:"guild_id,omitempty"`
}

// GuildCreate is the data for a GuildCreate event.
Expand Down Expand Up @@ -212,6 +213,7 @@ type RelationshipRemove struct {
type TypingStart struct {
UserID string `json:"user_id"`
ChannelID string `json:"channel_id"`
GuildID string `json:"guild_id,omitempty"`
Timestamp int `json:"timestamp"`
}

Expand Down Expand Up @@ -250,4 +252,5 @@ type VoiceStateUpdate struct {
type MessageDeleteBulk struct {
Messages []string `json:"ids"`
ChannelID string `json:"channel_id"`
GuildID string `json:"guild_id"`
}
3 changes: 3 additions & 0 deletions message.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ type Message struct {
// The ID of the channel in which the message was sent.
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.
Content string `json:"content"`

Expand Down
1 change: 1 addition & 0 deletions structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -813,6 +813,7 @@ type MessageReaction struct {
MessageID string `json:"message_id"`
Emoji Emoji `json:"emoji"`
ChannelID string `json:"channel_id"`
GuildID string `json:"guild_id,omitempty"`
}

// GatewayBotResponse stores the data for the gateway/bot response
Expand Down

0 comments on commit 82c8cf2

Please sign in to comment.