summaryrefslogtreecommitdiff
path: root/src/discord/usersettings.hpp
blob: 2631c452141178eae62064a4e7e924f8c04b662f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#pragma once
#include "json.hpp"
#include "snowflake.hpp"
#include <string>

struct UserSettingsGuildFoldersEntry {
    int Color = -1; // null
    std::vector<Snowflake> GuildIDs;
    Snowflake ID;     // null (this can be a snowflake as a string or an int that isnt a snowflake lol)
    std::string Name; // null

    friend void from_json(const nlohmann::json &j, UserSettingsGuildFoldersEntry &m);
};

struct UserSettings {
    std::vector<UserSettingsGuildFoldersEntry> GuildFolders;
    /*
    int TimezoneOffset;
    std::string Theme;
    bool AreStreamNotificationsEnabled;
    std::string Status;
    bool ShouldShowCurrentGame;
    // std::vector<Unknown> RestrictedGuilds;
    bool ShouldRenderReactions;
    bool ShouldRenderEmbeds;
    bool IsNativePhoneIntegrationEnabled;
    bool ShouldMessageDisplayCompact;
    std::string Locale;
    bool ShouldInlineEmbedMedia;
    bool ShouldInlineAttachmentMedia;
    std::vector<Snowflake> GuildPositions; // deprecated?
    bool ShouldGIFAutoplay;
    // Unknown FriendSourceFlags;
    int ExplicitContentFilter;
    bool IsTTSCommandEnabled;
    bool ShouldDisableGamesTab;
    bool DeveloperMode;
    bool ShouldDetectPlatformAccounts;
    bool AreDefaultGuildsRestricted;
    // Unknown CustomStatus; // null
    bool ShouldConvertEmoticons;
    bool IsContactSyncEnabled;
    bool ShouldAnimateEmojis;
    bool IsAccessibilityDetectionAllowed;
    int AFKTimeout;*/

    friend void from_json(const nlohmann::json &j, UserSettings &m);
};