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
+3 -2
+3 -2
View File
@@ -256,7 +256,7 @@ module.exports = new Command({
time: supportbot.Timeout * 60000,
});
} catch (e) {
if (e.code == "INTERACTION_COLLECTOR_ERROR")
if (e.code == "INTERACTION_COLLECTOR_ERROR") {
try {
TicketData = await JSON.parse(
fs.readFileSync("./Data/TicketData.json", "utf8")
@@ -276,7 +276,8 @@ module.exports = new Command({
"Your ticket has timed out. Please open a new one, and select a department."
);
} catch (e) {}
return await ticketChannel.delete();
return await ticketChannel.delete();
}
}
let role;
let title;