From e117e38bac8122c833d6ee09bdeb3c0c3b0456a8 Mon Sep 17 00:00:00 2001 From: "Isaac (eartharoid)" Date: Sun, 6 Sep 2020 21:45:02 +0100 Subject: [PATCH] small fixes --- src/commands/new.js | 2 +- src/commands/topic.js | 2 +- src/modules/archive.js | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/commands/new.js b/src/commands/new.js index 910b315..162d7aa 100644 --- a/src/commands/new.js +++ b/src/commands/new.js @@ -127,7 +127,7 @@ module.exports = { .setAuthor(message.author.username, message.author.displayAvatarURL()) .setTitle(':white_check_mark: **Ticket created**') .setDescription(`Your ticket has been created: ${c}`) - .setFooter(client.user.username + ' | This message will be deleted in 15 seconds', client.user.avatarURL()) + .setFooter(client.user.username + ' | This message will be deleted in 15 seconds', client.user.displayAvatarURL()) ); setTimeout(async () => { diff --git a/src/commands/topic.js b/src/commands/topic.js index 5868121..1b7261e 100644 --- a/src/commands/topic.js +++ b/src/commands/topic.js @@ -66,7 +66,7 @@ module.exports = { .setAuthor(message.author.username, message.author.displayAvatarURL()) .setTitle(':white_check_mark: **Ticket updated**') .setDescription('The topic has been changed.') - .setFooter(client.user.username, client.user.avatarURL()) + .setFooter(client.user.username, client.user.displayAvatarURL()) ); } }; \ No newline at end of file diff --git a/src/modules/archive.js b/src/modules/archive.js index efc2a04..5fb2878 100644 --- a/src/modules/archive.js +++ b/src/modules/archive.js @@ -149,6 +149,8 @@ module.exports.export = (Ticket, channel) => new Promise((resolve, reject) => { fs.unlinkSync(json); resolve(res.url); + }).catch(e => { + return resolve(e); }); });