pretend to be a real client a little better

This commit is contained in:
ouwou
2020-12-14 03:05:16 -05:00
parent 33ed25b2f6
commit 22578921b9
10 changed files with 134 additions and 43 deletions

View File

@@ -103,7 +103,7 @@ void MemberList::UpdateMemberListInternal() {
if (!chan.has_value()) return;
std::unordered_set<Snowflake> ids;
if (chan->Type == ChannelType::DM || chan->Type == ChannelType::GROUP_DM) {
for (const auto &user : *chan->Recipients)
for (const auto &user : chan->GetDMRecipients())
ids.insert(user.ID);
ids.insert(discord.GetUserData().ID);
} else {