diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-06-20 20:32:16 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-06-20 20:32:16 -0400 |
commit | 7db2675087a563ec82574937759137fa2e57298c (patch) | |
tree | dc1dac731ef1ca4f4f89edb2913e34abc2eaeda9 /discord/store.hpp | |
parent | 78f3164063f90c2be53d56fef6fd4a1cd085d923 (diff) | |
download | abaddon-portaudio-7db2675087a563ec82574937759137fa2e57298c.tar.gz abaddon-portaudio-7db2675087a563ec82574937759137fa2e57298c.zip |
fetch pins from store if already requested
Diffstat (limited to 'discord/store.hpp')
-rw-r--r-- | discord/store.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/discord/store.hpp b/discord/store.hpp index 1e0b4c7..7e7d6ea 100644 --- a/discord/store.hpp +++ b/discord/store.hpp @@ -43,6 +43,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; void ClearGuild(Snowflake id); void ClearChannel(Snowflake id); @@ -133,6 +134,7 @@ private: mutable sqlite3_stmt *m_set_msg_interaction_stmt; mutable sqlite3_stmt *m_get_last_msgs_stmt; mutable sqlite3_stmt *m_get_msg_ids_stmt; + mutable sqlite3_stmt *m_get_pins_stmt; }; template<typename T> |