From 08d604f8369327cbf2db6f81b733ed2b3f524d2e Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Mon, 5 Apr 2021 02:18:30 -0400 Subject: allow using animated emojis + emojis from other servers w/ nitro also hide unavailable emojis and role-locked emojis. if you have the role it still wont show up yet though --- discord/discord.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'discord/discord.cpp') diff --git a/discord/discord.cpp b/discord/discord.cpp index 54a7b52..5c287d6 100644 --- a/discord/discord.cpp +++ b/discord/discord.cpp @@ -1617,6 +1617,13 @@ std::set DiscordClient::GetPrivateChannels() const { return ret; } +PremiumType DiscordClient::GetSelfPremiumType() const { + const auto &data = GetUserData(); + if (data.PremiumType.has_value()) + return *data.PremiumType; + return PremiumType::None; +} + void DiscordClient::HeartbeatThread() { while (m_client_connected) { if (!m_heartbeat_acked) { -- cgit v1.2.3