diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-09-13 01:44:43 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-09-13 01:44:43 -0400 |
commit | af85d5c89582176b75d43f3f92cce6aa55d19367 (patch) | |
tree | 44febc0f5dc026572fab9d7a9776bfc202c7b675 /components/memberlist.cpp | |
parent | b01234083001e5b1f5383d6cd4e909e6ca7e58cf (diff) | |
parent | 002004cb5f01d22601047433cc868359cf022842 (diff) | |
download | abaddon-portaudio-af85d5c89582176b75d43f3f92cce6aa55d19367.tar.gz abaddon-portaudio-af85d5c89582176b75d43f3f92cce6aa55d19367.zip |
Merge branch 'threads'
Diffstat (limited to 'components/memberlist.cpp')
-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; |