feat(GuildMemberManager): _fetchMany

This commit is contained in:
March 7th
2022-08-09 10:43:16 +07:00
parent de5fe927a3
commit 19dc2ee263
5 changed files with 49 additions and 31 deletions

View File

@@ -27,7 +27,7 @@ class ThreadListSyncAction extends Action {
return coll.set(thread.id, thread);
}, new Collection());
for (const rawMember of Object.values(data.members)) {
for (const rawMember of Object.values(data.members || {})) {
// Discord sends the thread id as id in this object
const thread = client.channels.cache.get(rawMember.id);
if (thread) {