Arange struct to reduce memory usage.
This commit is contained in:
parent
ae860ce166
commit
cec33d9477
1 changed files with 13 additions and 13 deletions
26
structs.go
26
structs.go
|
@ -96,8 +96,8 @@ type Session struct {
|
||||||
|
|
||||||
type rateLimitMutex struct {
|
type rateLimitMutex struct {
|
||||||
sync.Mutex
|
sync.Mutex
|
||||||
url map[string]*sync.Mutex
|
url map[string]*sync.Mutex
|
||||||
bucket map[string]*sync.Mutex // TODO :)
|
// bucket map[string]*sync.Mutex // TODO :)
|
||||||
}
|
}
|
||||||
|
|
||||||
// A Resumed struct holds the data received in a RESUMED event
|
// A Resumed struct holds the data received in a RESUMED event
|
||||||
|
@ -282,22 +282,22 @@ 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"`
|
||||||
InlineAttachmentMedia bool `json:"inline_attachment_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"`
|
|
||||||
Theme string `json:"theme"`
|
|
||||||
|
|
||||||
GuildPositions []string `json:"guild_positions"`
|
|
||||||
RestrictedGuilds []string `json:"restricted_guilds"`
|
|
||||||
AllowEmailFriendRequest bool `json:"allow_email_friend_request"`
|
AllowEmailFriendRequest bool `json:"allow_email_friend_request"`
|
||||||
ConvertEmoticons bool `json:"convert_emoticons"`
|
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"`
|
FriendSourceFlags *FriendSourceFlags `json:"friend_source_flags"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FriendSourceFlags stores ... TODO :)
|
||||||
type FriendSourceFlags struct {
|
type FriendSourceFlags struct {
|
||||||
All bool `json:"all"`
|
All bool `json:"all"`
|
||||||
MutualGuilds bool `json:"mutual_guilds"`
|
MutualGuilds bool `json:"mutual_guilds"`
|
||||||
|
|
Loading…
Reference in a new issue