From 4069978ca4614c226b0ce3003efa5804e44045fa Mon Sep 17 00:00:00 2001 From: Bsian Date: Wed, 30 Oct 2019 12:31:18 +0000 Subject: [PATCH] Reordered error messages --- src/commands/cwg.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/cwg.ts b/src/commands/cwg.ts index ac415dd..3455ba9 100644 --- a/src/commands/cwg.ts +++ b/src/commands/cwg.ts @@ -106,10 +106,10 @@ export default class CWG extends Command { // @ts-ignore message.channel.createMessage({ embed }); } else if (args[0] === 'delete') { - const edit = await message.channel.createMessage(`***${this.client.stores.emojis.loading} Deleting domain...`); if (!args[1]) return this.client.commands.get('help').run(message, [this.name]); const domain = await this.client.db.Domain.findOne({ $or: [{ domain: args[1] }, { port: Number(args[1]) || '' }] }); if (!domain) return message.channel.createMessage(`***${this.client.stores.emojis.error} The domain or port you provided could not be found.***`); + const edit = await message.channel.createMessage(`***${this.client.stores.emojis.loading} Deleting domain...`); const embed = new RichEmbed(); embed.setTitle('Domain Deletion'); embed.addField('Account Username', domain.account.username, true);