add loading message

merge-requests/4/head
Bsian 2020-01-04 16:14:08 +00:00
parent 9549c99ebb
commit 56c94a5e33
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}