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); }); });