Update ticket.js

This commit is contained in:
Noah committed 2021-12-18 22:42:51 -06:00
1 parent 24c8f2fb38
commit 09b335ac46
1 file changed
+2 -1
+2 -1
View File
@@ -256,7 +256,7 @@ module.exports = new Command({
time: supportbot.Timeout * 60000, time: supportbot.Timeout * 60000,
}); });
} catch (e) { } catch (e) {
if (e.code == "INTERACTION_COLLECTOR_ERROR") if (e.code == "INTERACTION_COLLECTOR_ERROR") {
try { try {
TicketData = await JSON.parse( TicketData = await JSON.parse(
fs.readFileSync("./Data/TicketData.json", "utf8") fs.readFileSync("./Data/TicketData.json", "utf8")
@@ -278,6 +278,7 @@ module.exports = new Command({
} catch (e) {} } catch (e) {}
return await ticketChannel.delete(); return await ticketChannel.delete();
} }
}
let role; let role;
let title; let title;
if (collector.customId === "Department1") { if (collector.customId === "Department1") {