[feature request] (+ logic suggestion/idea) Multiple tickets from one user
Feature request: add the ability to open multiple tickets by one user.
Now it is impossible because of the discord_id check. I believe it would be better if the bot stored the channel-id of each created ticket, not just the author or channel name, because the channel-id is always unique and does not change, but the channel name could be changed easily. This would avoid bugs* when changing channel names and allow users to open multiple tickets for different issues.
*regarding the bugs: I've tried to do so myself, but I guess I'm not skilled enough to rewrite almost half of the database storage system, which is not entirely clear to me. I've just been facing the issues when something goes wrong, and the bot deletes only one ticket and then breaks. But, whatever, that was my own mistakes.
Currently, both the discord_id and ticket_channel (which is the channel ID) are stored in the database. The discord_id is used to check whether a user already has an open ticket. Technically, it’s possible to change the channel name, but the main issue lies in the slash commands, as they still rely on the ticket channel name instead of the channel ID.
If I were to remove the discord_id check and only use the channel ID to track tickets, I would have nothing to compare the values against meaning users could open unlimited tickets, which could lead to spam and abuse. So while using the channel_id would make the system more robust (especially when channel names are changed), the discord_id check is currently necessary to prevent misuse.
However, in the next update, I plan to make it possible for users to open one ticket per category allowing multiple tickets per user, but still with reasonable limits to avoid spam.
And also I can help you with your issues just send me a DM on Discord and I’ll help you!