Added the CHANNEL_PINS_UPDATE event

This commit is contained in:
jonas747 2016-07-29 23:40:56 +02:00
parent 9011830676
commit 2a1f0ff893
2 changed files with 7 additions and 0 deletions

View file

@ -16,6 +16,7 @@ var eventToInterface = map[string]interface{}{
"CHANNEL_CREATE": ChannelCreate{},
"CHANNEL_UPDATE": ChannelUpdate{},
"CHANNEL_DELETE": ChannelDelete{},
"CHANNEL_PINS_UPDATE": ChannelPinsUpdate{},
"GUILD_CREATE": GuildCreate{},
"GUILD_UPDATE": GuildUpdate{},
"GUILD_DELETE": GuildDelete{},

View file

@ -464,6 +464,12 @@ type UserGuildSettingsEdit struct {
ChannelOverrides map[string]*UserGuildSettingsChannelOverride `json:"channel_overrides"`
}
// ChannelPinsUpdate stores data for the channel pins update event
type ChannelPinsUpdate struct {
LastPinTimestamp string `json:"last_pin_timestamp"`
ChannelID string `json:"channel_id"`
}
// Constants for the different bit offsets of text channel permissions
const (
PermissionReadMessages = 1 << (iota + 10)