diff --git a/src/intervals/departmentPager.ts b/src/intervals/departmentPager.ts index 9093e7d..28fe74a 100644 --- a/src/intervals/departmentPager.ts +++ b/src/intervals/departmentPager.ts @@ -84,7 +84,7 @@ export default async function departmentPager(client: Client): Promise m.id === id); } await client.guilds.get(client.config.guildID).fetchAllMembers(); - const members = client.guilds.get(client.config.guildID).members.values(); + const members = client.guilds.get(client.config.guildID).members.map((m) => m); for (const member of members) { const pager = await client.db.PagerNumber.findOne({ individualAssignID: member.id }).lean().exec(); @@ -115,7 +115,6 @@ export default async function departmentPager(client: Client): Promise(); for (const member of members) { let pager = await client.db.PagerNumber.findOne({ individualAssignID: member.id }).lean().exec(); // Directors