diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-04-05 02:49:11 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-04-05 02:49:11 -0400 |
commit | 6acd65fbaa052abaa989201dd853ffa261d2231e (patch) | |
tree | 34476b03b40b67d94f48f905f3f3f79a2a6c4e6c | |
parent | 08d604f8369327cbf2db6f81b733ed2b3f524d2e (diff) | |
download | abaddon-portaudio-6acd65fbaa052abaa989201dd853ffa261d2231e.tar.gz abaddon-portaudio-6acd65fbaa052abaa989201dd853ffa261d2231e.zip |
fix build (again ffs)
-rw-r--r-- | components/completer.cpp | 2 | ||||
-rw-r--r-- | discord/discord.cpp | 4 | ||||
-rw-r--r-- | discord/discord.hpp | 2 | ||||
-rw-r--r-- | discord/user.hpp | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/components/completer.cpp b/components/completer.cpp index 9af4825..e37e11e 100644 --- a/components/completer.cpp +++ b/components/completer.cpp @@ -161,7 +161,7 @@ void Completer::CompleteEmojis(const Glib::ustring &term) { }; int i = 0; - if (discord.GetSelfPremiumType() == PremiumType::None) { + if (discord.GetSelfPremiumType() == EPremiumType::None) { if (channel->GuildID.has_value()) { const auto guild = discord.GetGuild(*channel->GuildID); diff --git a/discord/discord.cpp b/discord/discord.cpp index 5c287d6..82db467 100644 --- a/discord/discord.cpp +++ b/discord/discord.cpp @@ -1617,11 +1617,11 @@ std::set<Snowflake> DiscordClient::GetPrivateChannels() const { return ret; } -PremiumType DiscordClient::GetSelfPremiumType() const { +EPremiumType DiscordClient::GetSelfPremiumType() const { const auto &data = GetUserData(); if (data.PremiumType.has_value()) return *data.PremiumType; - return PremiumType::None; + return EPremiumType::None; } void DiscordClient::HeartbeatThread() { diff --git a/discord/discord.hpp b/discord/discord.hpp index bb3d800..cd3286c 100644 --- a/discord/discord.hpp +++ b/discord/discord.hpp @@ -75,7 +75,7 @@ public: std::set<Snowflake> GetMessagesForChannel(Snowflake id) const; std::set<Snowflake> GetPrivateChannels() const; - PremiumType GetSelfPremiumType() const; + EPremiumType GetSelfPremiumType() const; void FetchMessagesInChannel(Snowflake id, std::function<void(const std::vector<Snowflake> &)> cb); void FetchMessagesInChannelBefore(Snowflake channel_id, Snowflake before_id, std::function<void(const std::vector<Snowflake> &)> cb); diff --git a/discord/user.hpp b/discord/user.hpp index afb1149..e85107c 100644 --- a/discord/user.hpp +++ b/discord/user.hpp @@ -3,7 +3,7 @@ #include "json.hpp" #include <string> -enum class PremiumType { +enum class EPremiumType { None = 0, NitroClassic = 1, Nitro = 2, @@ -42,7 +42,7 @@ struct UserData { std::optional<bool> IsVerified; std::optional<std::string> Email; // null std::optional<uint64_t> Flags; - std::optional<PremiumType> PremiumType; // null + std::optional<EPremiumType> PremiumType; // null std::optional<uint64_t> PublicFlags; // undocumented (opt) |