Merge pull request #176 from jonas747/settings
Added new fields to Settings struct
This commit is contained in:
commit
d5503b3621
1 changed files with 19 additions and 8 deletions
13
structs.go
13
structs.go
|
@ -254,12 +254,23 @@ type User struct {
|
||||||
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"`
|
||||||
|
InlineAttachmentMedia bool `json:"inline_attachment_media"`
|
||||||
EnableTtsCommand bool `json:"enable_tts_command"`
|
EnableTtsCommand bool `json:"enable_tts_command"`
|
||||||
MessageDisplayCompact bool `json:"message_display_compact"`
|
MessageDisplayCompact bool `json:"message_display_compact"`
|
||||||
ShowCurrentGame bool `json:"show_current_game"`
|
ShowCurrentGame bool `json:"show_current_game"`
|
||||||
Locale string `json:"locale"`
|
Locale string `json:"locale"`
|
||||||
Theme string `json:"theme"`
|
Theme string `json:"theme"`
|
||||||
MutedChannels []string `json:"muted_channels"`
|
|
||||||
|
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.
|
||||||
|
|
Loading…
Reference in a new issue