Update ticket.js
This commit is contained in:
1 parent
24c8f2fb38
commit
09b335ac46
1 file changed
+2
-1
+2
-1
@@ -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")
|
||||
@@ -278,6 +278,7 @@ module.exports = new Command({
|
||||
} catch (e) {}
|
||||
return await ticketChannel.delete();
|
||||
}
|
||||
}
|
||||
let role;
|
||||
let title;
|
||||
if (collector.customId === "Department1") {
|
||||
|
||||
Reference in new issue
Block a user