From 56c94a5e33a30525f3f6e09e39dd08d6e5cb82fb Mon Sep 17 00:00:00 2001 From: Bsian Date: Sat, 4 Jan 2020 16:14:08 +0000 Subject: [PATCH] add loading message --- src/commands/parseall.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/parseall.ts b/src/commands/parseall.ts index 1aa5fc2..65e1531 100644 --- a/src/commands/parseall.ts +++ b/src/commands/parseall.ts @@ -19,6 +19,7 @@ export default class Parseall extends Command { public async run(message: Message, args: string[]) { try { + const msg = await message.channel.createMessage(`${this.client.stores.emojis.loading} ***Loading...***`); const embed = new RichEmbed(); embed.setTitle('Certificate Validation'); embed.setAuthor(this.client.user.username, this.client.user.avatarURL); @@ -58,7 +59,6 @@ export default class Parseall extends Command { if (notAfter < new Date()) return `${this.client.stores.emojis.error} **${a.username}** Expired ${time} ago`; return `${this.client.stores.emojis.success} **${a.username}** Expires in ${time}`; })); - this.client.signale.info(final); if (final.join('\n').length < 2048) embed.setDescription(final.join('\n')); else { @@ -67,7 +67,7 @@ export default class Parseall extends Command { } // @ts-ignore - return await message.channel.createMessage({ embed }); + return await msg.edit({ content: '', embed }); } catch (error) { return this.client.util.handleError(error, message, this); }