diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-08-20 01:13:51 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-08-20 01:13:51 -0400 |
commit | 2a45d7173ab58e60b63ce1e1183d719442988a32 (patch) | |
tree | 716d5a07e5f3d1cb2ba4970cacfcb40b11e84386 /components | |
parent | 1fa3e5beac2002b35d04dcd6c0f4d7132709ca30 (diff) | |
download | abaddon-portaudio-2a45d7173ab58e60b63ce1e1183d719442988a32.tar.gz abaddon-portaudio-2a45d7173ab58e60b63ce1e1183d719442988a32.zip |
proper member list in threads
Diffstat (limited to 'components')
-rw-r--r-- | components/memberlist.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/components/memberlist.cpp b/components/memberlist.cpp index e91ce88..804f443 100644 --- a/components/memberlist.cpp +++ b/components/memberlist.cpp @@ -127,7 +127,12 @@ void MemberList::UpdateMemberList() { return; } - auto ids = discord.GetUsersInGuild(m_guild_id); + std::set<Snowflake> ids; + if (chan->IsThread()) { + const auto x = discord.GetUsersInThread(m_chan_id); + ids = { x.begin(), x.end() }; + } else + ids = discord.GetUsersInGuild(m_guild_id); // process all the shit first so its in proper order std::map<int, RoleData> pos_to_role; |