small fixes

This commit is contained in:
Isaac (eartharoid) 2020-09-06 21:45:02 +01:00
parent 2f18ad19dd
commit e117e38bac
3 changed files with 4 additions and 2 deletions

View File

@ -127,7 +127,7 @@ module.exports = {
.setAuthor(message.author.username, message.author.displayAvatarURL()) .setAuthor(message.author.username, message.author.displayAvatarURL())
.setTitle(':white_check_mark: **Ticket created**') .setTitle(':white_check_mark: **Ticket created**')
.setDescription(`Your ticket has been created: ${c}`) .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 () => { setTimeout(async () => {

View File

@ -66,7 +66,7 @@ module.exports = {
.setAuthor(message.author.username, message.author.displayAvatarURL()) .setAuthor(message.author.username, message.author.displayAvatarURL())
.setTitle(':white_check_mark: **Ticket updated**') .setTitle(':white_check_mark: **Ticket updated**')
.setDescription('The topic has been changed.') .setDescription('The topic has been changed.')
.setFooter(client.user.username, client.user.avatarURL()) .setFooter(client.user.username, client.user.displayAvatarURL())
); );
} }
}; };

View File

@ -149,6 +149,8 @@ module.exports.export = (Ticket, channel) => new Promise((resolve, reject) => {
fs.unlinkSync(json); fs.unlinkSync(json);
resolve(res.url); resolve(res.url);
}).catch(e => {
return resolve(e);
}); });
}); });