mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-12-23 00:03:09 +02:00
Update close.js
This commit is contained in:
parent
390bec85c8
commit
2b5282b19e
@ -132,7 +132,7 @@ module.exports = {
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
log.warn(`Could not create DM channel with ${u.tag}`);
|
log.warn(`Could not create DM channel with ${u.tag}`);
|
||||||
}
|
}
|
||||||
const archive = client.channels.cache.find(ch => ch.id === "")
|
|
||||||
|
|
||||||
let res = {};
|
let res = {};
|
||||||
const embed = new MessageEmbed()
|
const embed = new MessageEmbed()
|
||||||
@ -161,12 +161,11 @@ module.exports = {
|
|||||||
|
|
||||||
res.embed = embed;
|
res.embed = embed;
|
||||||
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
archive.send(res)
|
dm.send(res);
|
||||||
dm.send(res)
|
if (config.logs.discord.enabled) client.channels.cache.get(config.logs.discord.channel).send(res);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
message.channel.send('❌ Couldn\'t send to Logging Channel.');
|
message.channel.send('❌ Couldn\'t send DM or transcript log message');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user