Update ticket.js
This commit is contained in:
1 parent
24c8f2fb38
commit
09b335ac46
1 file changed
+3
-2
+3
-2
@@ -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")
|
||||||
@@ -276,7 +276,8 @@ module.exports = new Command({
|
|||||||
"Your ticket has timed out. Please open a new one, and select a department."
|
"Your ticket has timed out. Please open a new one, and select a department."
|
||||||
);
|
);
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
return await ticketChannel.delete();
|
return await ticketChannel.delete();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
let role;
|
let role;
|
||||||
let title;
|
let title;
|
||||||
|
|||||||
Reference in new issue
Block a user