diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-12-23 20:14:10 -0500 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-12-23 20:14:10 -0500 |
commit | 1ba3daa04ac374504a5cdf62cb5fde44f12027bc (patch) | |
tree | 2c1c8e58cac1ccc07eb47ac1bcb7d5dcda113162 /src/discord/usersettings.hpp | |
parent | e0e0a6c76708fdf12113bf1b5c4ee96eacc35cae (diff) | |
download | abaddon-portaudio-1ba3daa04ac374504a5cdf62cb5fde44f12027bc.tar.gz abaddon-portaudio-1ba3daa04ac374504a5cdf62cb5fde44f12027bc.zip |
basic folder support
Diffstat (limited to 'src/discord/usersettings.hpp')
-rw-r--r-- | src/discord/usersettings.hpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/discord/usersettings.hpp b/src/discord/usersettings.hpp index 2631c45..513390b 100644 --- a/src/discord/usersettings.hpp +++ b/src/discord/usersettings.hpp @@ -1,13 +1,14 @@ #pragma once #include "json.hpp" #include "snowflake.hpp" +#include <optional> #include <string> struct UserSettingsGuildFoldersEntry { - int Color = -1; // null + std::optional<int> Color; 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 + std::optional<Snowflake> ID; // (this can be a snowflake as a string or an int that isnt a snowflake lol) + std::optional<std::string> Name; friend void from_json(const nlohmann::json &j, UserSettingsGuildFoldersEntry &m); }; |