diff options
Diffstat (limited to 'src/state.hpp')
-rw-r--r-- | src/state.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/state.hpp b/src/state.hpp index 230808f..81c36d2 100644 --- a/src/state.hpp +++ b/src/state.hpp @@ -1,3 +1,4 @@ +#pragma once #include <vector> #include <nlohmann/json.hpp> #include "discord/snowflake.hpp" @@ -18,9 +19,17 @@ struct ExpansionState { friend void from_json(const nlohmann::json &j, ExpansionState &m); }; +struct TabsState { + std::vector<Snowflake> Channels; + + friend void to_json(nlohmann::json &j, const TabsState &m); + friend void from_json(const nlohmann::json &j, TabsState &m); +}; + struct AbaddonApplicationState { Snowflake ActiveChannel; ExpansionStateRoot Expansion; + TabsState Tabs; friend void to_json(nlohmann::json &j, const AbaddonApplicationState &m); friend void from_json(const nlohmann::json &j, AbaddonApplicationState &m); |