mirror of
https://github.com/celisej567/abaddon.git
synced 2026-09-13 20:18:50 +03:00
add opened tabs to state
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user