From aa5249c78bdd1534f73b2807cee93d9123d44035 Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Tue, 4 Jan 2022 01:22:45 +0500 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=B8=D1=81=D0=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/Administration/backup.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/commands/Administration/backup.js b/commands/Administration/backup.js index 791ef1f9..de84ca4e 100644 --- a/commands/Administration/backup.js +++ b/commands/Administration/backup.js @@ -107,7 +107,7 @@ class Backup extends Command { if (!backupID) return message.error("administration/backup:MISSING_BACKUP_ID"); backup.fetch(backupID).then(async () => { - message.sendT("administration/backup:CONFIRMATION"); + message.sendT("administration/backup:REMOVE_CONFIRMATION"); await message.channel.awaitMessages(m => (m.author.id === message.author.id) && (m.content === "confirm"), { max: 1, time: 20000, @@ -117,8 +117,9 @@ class Backup extends Command { return message.error("administration/backup:TIMES_UP"); }); - backup.remove(backupID); - message.success("administration/backup:SUCCESS_REMOVED"); + backup.remove(backupID).then(async () => { + message.success("administration/backup:SUCCESS_REMOVED"); + }); }).catch(() => { // if the backup wasn't found return message.error("administration/backup:NO_BACKUP_FOUND", {