Sayrix / Ticket-Bot

Discord ticket bot with buttons, slash commands, select menus, modals, and transcripts system made with Discord.js v14
https://doc.ticket.pm
Creative Commons Attribution 4.0 International
442 stars 257 forks source link

Closed Ticket Access Issue: Users Unable to Open New Tickets After Closure #323

Closed KoreMoDz closed 7 months ago

KoreMoDz commented 8 months ago

Describe the bug There's a bug in the Discord ticket bot system. When a user's ticket is closed but not deleted, they are unable to open new tickets. The chat created for the ticket becomes inaccessible, or an error message indicates that the ticket limit is one, even though they have no open tickets. This issue occurs specifically when a ticket is closed, and the user tries to reopen it using the same message that is only visible to them.

To Reproduce Steps to reproduce the behavior:

  1. Close a user's ticket without deleting it.
  2. The user tries to open a new ticket by clicking on the message that was used to open the previously closed ticket, which is only visible to them.
  3. The chat for the new ticket becomes inaccessible to the user.
  4. Alternatively, an error message is displayed indicating a ticket limit of one, despite no open tickets.

Expected behavior After a ticket is closed, users should be able to open new tickets without encountering access issues or receiving incorrect ticket limit errors.

https://github.com/Sayrix/Ticket-Bot/assets/135083201/42b01180-bd8a-459e-b72f-06fe36a237db

zhiyan114 commented 7 months ago

Hi,

I wasn't able to reproduce the said issue, by both testing and reviewing the query that counts for the total open tickets. Could it be that the issue is already fixed in the feat branch and haven't been pushed to the main yet?

zhiyan114 commented 7 months ago

Closed due to lack of update from user