Getting info from JSON
Hello, this is my code for countering ticket channels, like 0001, 0002, 0003 etc. but i have one simple problem, how i can getting info from tickets.json? Because now i getting info from channel name, but its bad for me, because if i close ticket and delete it, the function
channel.name.starsWith("ticket_")
it will make the next ticket be 0001 again because there is no channel named ticket_0001 etc.
I am quite inexperienced in this, so if someone could please tell me what to do, I would be grateful, thanks everyone! I made this using the tutorials but I'm bad at programming so I don't know how to do it.1 Reply
In JavaScript you use dot notation to reference keys inside an object