From 82ac29f0bc5358a56270c3285d531d17b124d1b1 Mon Sep 17 00:00:00 2001 From: jonas747 Date: Mon, 25 Apr 2016 03:30:12 +0200 Subject: [PATCH] Updated settings struct --- structs.go | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/structs.go b/structs.go index 7ca71a6..de43f65 100644 --- a/structs.go +++ b/structs.go @@ -248,14 +248,25 @@ type User struct { // A Settings stores data for a specific users Discord client settings. type Settings struct { - RenderEmbeds bool `json:"render_embeds"` - InlineEmbedMedia bool `json:"inline_embed_media"` - EnableTtsCommand bool `json:"enable_tts_command"` - MessageDisplayCompact bool `json:"message_display_compact"` - ShowCurrentGame bool `json:"show_current_game"` - Locale string `json:"locale"` - Theme string `json:"theme"` - MutedChannels []string `json:"muted_channels"` + RenderEmbeds bool `json:"render_embeds"` + InlineEmbedMedia bool `json:"inline_embed_media"` + InlineAttachmentMedia bool `json:"inline_attachment_media"` + EnableTtsCommand bool `json:"enable_tts_command"` + MessageDisplayCompact bool `json:"message_display_compact"` + ShowCurrentGame bool `json:"show_current_game"` + Locale string `json:"locale"` + 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.