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();