Merge pull request #179 from jonas747/defaultmsgnotifi

Added default_message_notifications to guild struct
This commit is contained in:
Bruce 2016-04-25 15:34:57 -05:00
commit 34fcdb37b3

View file

@ -159,26 +159,27 @@ const (
// A Guild holds all data related to a specific Discord Guild. Guilds are also // A Guild holds all data related to a specific Discord Guild. Guilds are also
// sometimes referred to as Servers in the Discord client. // sometimes referred to as Servers in the Discord client.
type Guild struct { type Guild struct {
ID string `json:"id"` ID string `json:"id"`
Name string `json:"name"` Name string `json:"name"`
Icon string `json:"icon"` Icon string `json:"icon"`
Region string `json:"region"` Region string `json:"region"`
AfkChannelID string `json:"afk_channel_id"` AfkChannelID string `json:"afk_channel_id"`
EmbedChannelID string `json:"embed_channel_id"` EmbedChannelID string `json:"embed_channel_id"`
OwnerID string `json:"owner_id"` OwnerID string `json:"owner_id"`
JoinedAt string `json:"joined_at"` // make this a timestamp JoinedAt string `json:"joined_at"` // make this a timestamp
Splash string `json:"splash"` Splash string `json:"splash"`
AfkTimeout int `json:"afk_timeout"` AfkTimeout int `json:"afk_timeout"`
VerificationLevel VerificationLevel `json:"verification_level"` VerificationLevel VerificationLevel `json:"verification_level"`
EmbedEnabled bool `json:"embed_enabled"` EmbedEnabled bool `json:"embed_enabled"`
Large bool `json:"large"` // ?? Large bool `json:"large"` // ??
Roles []*Role `json:"roles"` DefaultMessageNotifications int `json:"default_message_notifications"`
Emojis []*Emoji `json:"emojis"` Roles []*Role `json:"roles"`
Members []*Member `json:"members"` Emojis []*Emoji `json:"emojis"`
Presences []*Presence `json:"presences"` Members []*Member `json:"members"`
Channels []*Channel `json:"channels"` Presences []*Presence `json:"presences"`
VoiceStates []*VoiceState `json:"voice_states"` Channels []*Channel `json:"channels"`
Unavailable *bool `json:"unavailable"` VoiceStates []*VoiceState `json:"voice_states"`
Unavailable *bool `json:"unavailable"`
} }
// A GuildParams stores all the data needed to update discord guild settings // A GuildParams stores all the data needed to update discord guild settings