diff --git a/src/intervals/departmentPager.ts b/src/intervals/departmentPager.ts index cd3eaa4..fed1b38 100644 --- a/src/intervals/departmentPager.ts +++ b/src/intervals/departmentPager.ts @@ -75,9 +75,9 @@ function logNewPager(client: Client, num: string, member: Member): void { channel.createMessage(`__**'${member.user.username}#${member.user.discriminator}' assigned to pager number '${num}'.**__`); } -export default async function departmentPager(client: Client): Promise { - setupDepartmentCodes(client); - async function start() { +export default async function departmentPager(client0: Client): Promise { + setupDepartmentCodes(client0); + async function start(client: Client) { const acknowledgements = require(`${__dirname}/../configs/acknowledgements.json`); function resolveStaffInformation(id: string) { return acknowledgements.find((m) => m.id === id); @@ -368,13 +368,13 @@ export default async function departmentPager(client: Client): Promise { - client.util.signale.time('pagerint'); - await start(); - client.util.signale.timeEnd('pagerint'); + client0.util.signale.time('pagerint'); + await start(client0); + client0.util.signale.timeEnd('pagerint'); }, 300000); return interval; }