Updated settings struct

This commit is contained in:
jonas747 2016-04-25 03:30:12 +02:00
parent 83622cecfa
commit 82ac29f0bc

View file

@ -248,14 +248,25 @@ type User struct {
// A Settings stores data for a specific users Discord client settings. // A Settings stores data for a specific users Discord client settings.
type Settings struct { type Settings struct {
RenderEmbeds bool `json:"render_embeds"` RenderEmbeds bool `json:"render_embeds"`
InlineEmbedMedia bool `json:"inline_embed_media"` InlineEmbedMedia bool `json:"inline_embed_media"`
EnableTtsCommand bool `json:"enable_tts_command"` InlineAttachmentMedia bool `json:"inline_attachment_media"`
MessageDisplayCompact bool `json:"message_display_compact"` EnableTtsCommand bool `json:"enable_tts_command"`
ShowCurrentGame bool `json:"show_current_game"` MessageDisplayCompact bool `json:"message_display_compact"`
Locale string `json:"locale"` ShowCurrentGame bool `json:"show_current_game"`
Theme string `json:"theme"` Locale string `json:"locale"`
MutedChannels []string `json:"muted_channels"` Theme string `json:"theme"`
RestrictedGuilds []string `json:"restricted_guilds"`
AllowEmailFriendRequest bool `json:"allow_email_friend_request"`
ConvertEmoticons bool `json:"convert_emoticons"`
FriendSourceFlags *FriendSourceFlags `json:"friend_source_flags"`
}
type FriendSourceFlags struct {
All bool `json:"all"`
MutualGuilds bool `json:"mutual_guilds"`
MutualFriends bool `json:"mutual_friends"`
} }
// An Event provides a basic initial struct for all websocket event. // An Event provides a basic initial struct for all websocket event.