From c3dea5b1dfcf3ec5a9af7f312dac46fb81cd6aaf Mon Sep 17 00:00:00 2001 From: Matthew R Date: Mon, 20 Jul 2020 18:15:55 -0400 Subject: [PATCH] fix pager issue --- src/commands/page.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/commands/page.ts b/src/commands/page.ts index 00a7e5d..bcb32bc 100644 --- a/src/commands/page.ts +++ b/src/commands/page.ts @@ -52,6 +52,7 @@ export default class Page extends Command { message.delete(); const loading = await this.loading(message.channel, 'Paging...'); const sender = await this.client.db.PagerNumber.findOne({ individualAssignID: message.author.id }); + if (!sender) return this.error(message.channel, 'You do not have a Pager Numer.'); const page = await this.page(args[0], sender.num, args[1], message, args[2] ? args.slice(2).join(' ') : undefined); if (page.status === true) { loading.delete();