From 8959dd5315f84829c76ab6ced486772c62809cc4 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Fri, 8 Nov 2019 20:05:47 -0500 Subject: [PATCH] send dm to log and user on delete cwg --- src/commands/cwg_delete.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/commands/cwg_delete.ts b/src/commands/cwg_delete.ts index 3998fab..cf58e16 100644 --- a/src/commands/cwg_delete.ts +++ b/src/commands/cwg_delete.ts @@ -53,7 +53,9 @@ export default class CWG_Delete extends Command { await this.client.util.exec('systemctl reload nginx'); edit.edit(`***${this.client.stores.emojis.success} Domain ${domain.domain} with port ${domain.port} has been successfully deleted.***`); // @ts-ignore - return message.channel.createMessage({ embed }); + this.client.createMessage('580950455581147146', { embed }); + // @ts-ignore + return this.client.getDMChannel(domain.account.userID).then((channel) => channel.createMessage({ embed })).catch(() => {}); } catch (error) { return this.client.util.handleError(error, message, this); }