From af60bceada7e55011f6d5ed2f13fef354ced45ef Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Fri, 4 Mar 2022 23:03:09 -0500 Subject: optimize sql for getting unknown member ids --- src/discord/store.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/discord/store.hpp') diff --git a/src/discord/store.hpp b/src/discord/store.hpp index 4320807..a1e5f81 100644 --- a/src/discord/store.hpp +++ b/src/discord/store.hpp @@ -44,6 +44,8 @@ public: std::vector GetPinnedMessages(Snowflake channel_id) const; std::vector GetActiveThreads(Snowflake channel_id) const; // public std::vector GetChannelIDsWithParentID(Snowflake channel_id) const; + std::unordered_set GetMembersInGuild(Snowflake guild_id) const; + // ^ not the same as GetUsersInGuild since users in a guild may include users who do not have retrieved member data void AddReaction(const MessageReactionAddObject &data, bool byself); void RemoveReaction(const MessageReactionRemoveObject &data, bool byself); @@ -302,5 +304,6 @@ private: STMT(sub_reaction); STMT(get_reactions); STMT(get_chan_ids_parent); + STMT(get_guild_member_ids); #undef STMT }; -- cgit v1.2.3