From 7db2675087a563ec82574937759137fa2e57298c Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Sun, 20 Jun 2021 20:32:16 -0400 Subject: fetch pins from store if already requested --- discord/store.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'discord/store.hpp') 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 GetLastMessages(Snowflake id, size_t num) const; std::vector GetChannelMessageIDs(Snowflake id) const; + std::vector 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 -- cgit v1.2.3