mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-12-23 00:03:09 +02:00
fixed eslint problems in closeall.js
This commit is contained in:
parent
bf12ac8e7a
commit
3d2b3c12cb
@ -174,7 +174,7 @@ module.exports = {
|
|||||||
|
|
||||||
if (fs.existsSync(paths.log) && fs.existsSync(paths.json)) {
|
if (fs.existsSync(paths.log) && fs.existsSync(paths.json)) {
|
||||||
let data = JSON.parse(fs.readFileSync(paths.json));
|
let data = JSON.parse(fs.readFileSync(paths.json));
|
||||||
for (u in data.entities.users) users.push(u);
|
data.entities.users.forEach(u => users.push(u));
|
||||||
embed.addField('Web archive', await archive.export(Ticket, channel));
|
embed.addField('Web archive', await archive.export(Ticket, channel));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -198,8 +198,8 @@ module.exports = {
|
|||||||
|
|
||||||
client.channels.fetch(channel)
|
client.channels.fetch(channel)
|
||||||
.then(c => c.delete()
|
.then(c => c.delete()
|
||||||
.then(o => log.info(`Deleted channel with name: \'#${o.name}\' <${o.id}>`))
|
.then(o => log.info(`Deleted channel with name: '#${o.name}' <${o.id}>`))
|
||||||
.catch(e => log.error(e)))
|
.catch(e => log.error(e)))
|
||||||
.catch(e => log.error(e));
|
.catch(e => log.error(e));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user