summaryrefslogtreecommitdiff
path: root/discord/store.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'discord/store.hpp')
-rw-r--r--discord/store.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/discord/store.hpp b/discord/store.hpp
index 7e7d6ea..f84d13e 100644
--- a/discord/store.hpp
+++ b/discord/store.hpp
@@ -44,6 +44,7 @@ public:
std::vector<Message> GetLastMessages(Snowflake id, size_t num) const;
std::vector<Snowflake> GetChannelMessageIDs(Snowflake id) const;
std::vector<Message> GetPinnedMessages(Snowflake channel_id) const;
+ std::vector<ChannelData> GetActiveThreads(Snowflake channel_id) const; // public
void ClearGuild(Snowflake id);
void ClearChannel(Snowflake id);
@@ -135,6 +136,8 @@ private:
mutable sqlite3_stmt *m_get_last_msgs_stmt;
mutable sqlite3_stmt *m_get_msg_ids_stmt;
mutable sqlite3_stmt *m_get_pins_stmt;
+ mutable sqlite3_stmt *m_get_threads_stmt;
+ mutable sqlite3_stmt *m_clear_chan_stmt;
};
template<typename T>