mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-12-23 00:03:09 +02:00
small fixes
This commit is contained in:
parent
2f18ad19dd
commit
e117e38bac
@ -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 () => {
|
||||
|
@ -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())
|
||||
);
|
||||
}
|
||||
};
|
@ -149,6 +149,8 @@ module.exports.export = (Ticket, channel) => new Promise((resolve, reject) => {
|
||||
fs.unlinkSync(json);
|
||||
|
||||
resolve(res.url);
|
||||
}).catch(e => {
|
||||
return resolve(e);
|
||||
});
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user