summaryrefslogtreecommitdiff
path: root/src/discord/discord.hpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2023-02-07 15:03:03 -0500
committerouwou <26526779+ouwou@users.noreply.github.com>2023-02-07 15:03:03 -0500
commitc1303bd289013a504b529f8f19444f12e4884040 (patch)
tree9318ba0b3b660264cba5c4a467b6f79cf80188e0 /src/discord/discord.hpp
parentea04035f0db8fa990dd7ca8dd1a64f56bceb82e2 (diff)
parent4dd0eb24c40a7276dea4fc349d885f4277795dcb (diff)
downloadabaddon-portaudio-c1303bd289013a504b529f8f19444f12e4884040.tar.gz
abaddon-portaudio-c1303bd289013a504b529f8f19444f12e4884040.zip
Merge branch 'master' into voice
Diffstat (limited to 'src/discord/discord.hpp')
-rw-r--r--src/discord/discord.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/discord/discord.hpp b/src/discord/discord.hpp
index 10b1d30..7b743ad 100644
--- a/src/discord/discord.hpp
+++ b/src/discord/discord.hpp
@@ -37,6 +37,7 @@ public:
std::vector<Message> GetMessagesForChannel(Snowflake id, size_t limit = 50) const;
std::vector<Message> GetMessagesBefore(Snowflake channel_id, Snowflake message_id, size_t limit = 50) const;
std::set<Snowflake> GetPrivateChannels() const;
+ const UserSettings &GetUserSettings() const;
EPremiumType GetSelfPremiumType() const;
@@ -205,6 +206,8 @@ public:
void UpdateToken(const std::string &token);
void SetUserAgent(const std::string &agent);
+ void SetDumpReady(bool dump);
+
bool IsChannelMuted(Snowflake id) const noexcept;
bool IsGuildMuted(Snowflake id) const noexcept;
int GetUnreadStateForChannel(Snowflake id) const noexcept;
@@ -223,6 +226,8 @@ private:
std::vector<uint8_t> m_decompress_buf;
z_stream m_zstream;
+ bool m_dump_ready = false;
+
static std::string GetAPIURL();
static std::string GetGatewayURL();