add loading message
parent
9549c99ebb
commit
56c94a5e33
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue