Merge branch 'dev'
commit
19e35c142f
|
@ -52,6 +52,7 @@ export default class Page extends Command {
|
||||||
message.delete();
|
message.delete();
|
||||||
const loading = await this.loading(message.channel, 'Paging...');
|
const loading = await this.loading(message.channel, 'Paging...');
|
||||||
const sender = await this.client.db.PagerNumber.findOne({ individualAssignID: message.author.id });
|
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);
|
const page = await this.page(args[0], sender.num, args[1], message, args[2] ? args.slice(2).join(' ') : undefined);
|
||||||
if (page.status === true) {
|
if (page.status === true) {
|
||||||
loading.delete();
|
loading.delete();
|
||||||
|
|
Loading…
Reference in New Issue