Fix id
This commit is contained in:
1 parent
b3690222d0
commit
c3ec158ac3
1 file changed
+3
@@ -258,6 +258,9 @@ module.exports = new Command({
|
||||
} catch (e) {
|
||||
if (e.code == "INTERACTION_COLLECTOR_ERROR")
|
||||
try {
|
||||
TicketData = await JSON.parse(
|
||||
fs.readFileSync("./Data/TicketData.json", "utf8")
|
||||
);
|
||||
let ticket = await TicketData.tickets.findIndex(
|
||||
(t) => t.id == ticketChannel.id
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user