|
@@ -267,7 +267,7 @@ type VoiceState struct {
|
|
|
// A Presence stores the online, offline, or idle and game status of Guild members.
|
|
|
type Presence struct {
|
|
|
User *User `json:"user"`
|
|
|
- Status string `json:"status"`
|
|
|
+ Status Status `json:"status"`
|
|
|
Game *Game `json:"game"`
|
|
|
}
|
|
|
|
|
@@ -304,20 +304,34 @@ 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"`
|
|
|
- InlineAttachmentMedia bool `json:"inline_attachment_media"`
|
|
|
- EnableTtsCommand bool `json:"enable_tts_command"`
|
|
|
- MessageDisplayCompact bool `json:"message_display_compact"`
|
|
|
- ShowCurrentGame bool `json:"show_current_game"`
|
|
|
- AllowEmailFriendRequest bool `json:"allow_email_friend_request"`
|
|
|
- ConvertEmoticons bool `json:"convert_emoticons"`
|
|
|
- Locale string `json:"locale"`
|
|
|
- Theme string `json:"theme"`
|
|
|
- GuildPositions []string `json:"guild_positions"`
|
|
|
- RestrictedGuilds []string `json:"restricted_guilds"`
|
|
|
- FriendSourceFlags *FriendSourceFlags `json:"friend_source_flags"`
|
|
|
-}
|
|
|
+ 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"`
|
|
|
+ ConvertEmoticons bool `json:"convert_emoticons"`
|
|
|
+ Locale string `json:"locale"`
|
|
|
+ Theme string `json:"theme"`
|
|
|
+ GuildPositions []string `json:"guild_positions"`
|
|
|
+ RestrictedGuilds []string `json:"restricted_guilds"`
|
|
|
+ FriendSourceFlags *FriendSourceFlags `json:"friend_source_flags"`
|
|
|
+ Status Status `json:"status"`
|
|
|
+ DetectPlatformAccounts bool `json:"detect_platform_accounts"`
|
|
|
+ DeveloperMode bool `json:"developer_mode"`
|
|
|
+}
|
|
|
+
|
|
|
+// Status type defination
|
|
|
+type Status string
|
|
|
+
|
|
|
+// Constants for Status with the different current available status
|
|
|
+const (
|
|
|
+ StatusOnline Status = "online"
|
|
|
+ StatusIdle Status = "idle"
|
|
|
+ StatusDoNotDisturb Status = "dnd"
|
|
|
+ StatusInvisible Status = "invisible"
|
|
|
+ StatusOffline Status = "offline"
|
|
|
+)
|
|
|
|
|
|
// FriendSourceFlags stores ... TODO :)
|
|
|
type FriendSourceFlags struct {
|