diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-03-22 01:30:51 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-03-22 01:30:51 -0400 |
commit | ac31bc6b94e422b929e63437696994b17002334d (patch) | |
tree | 37c68528ee257bb139a39e30a6668da5f00b3613 /discord/store.cpp | |
parent | 60404783bd4ce9be26233fe66fc3a74475d9eaa3 (diff) | |
download | abaddon-portaudio-ac31bc6b94e422b929e63437696994b17002334d.tar.gz abaddon-portaudio-ac31bc6b94e422b929e63437696994b17002334d.zip |
basic member verification for guilds that set rules
Diffstat (limited to 'discord/store.cpp')
-rw-r--r-- | discord/store.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/store.cpp b/discord/store.cpp index 44af4cd..6dcaabb 100644 --- a/discord/store.cpp +++ b/discord/store.cpp @@ -449,7 +449,7 @@ std::optional<GuildData> Store::GetGuild(Snowflake id) const { for (const auto &id : nlohmann::json::parse(tmp).get<std::vector<Snowflake>>()) ret.Emojis->emplace_back().ID = id; Get(m_get_guild_stmt, 14, tmp); - ret.Features = nlohmann::json::parse(tmp).get<std::vector<std::string>>(); + ret.Features = nlohmann::json::parse(tmp).get<std::unordered_set<std::string>>(); Get(m_get_guild_stmt, 15, ret.MFALevel); Get(m_get_guild_stmt, 16, ret.ApplicationID); Get(m_get_guild_stmt, 17, ret.IsWidgetEnabled); |