discord-tickets / bot

The most popular open-source and self-hosted ticket management bot for Discord - a free alternative to the premium and white-label plans of other popular ticketing bots.
https://discordtickets.app
GNU General Public License v3.0
905 stars 473 forks source link

[BUG] Create ticket for a user is not functional #556

Open techgo opened 3 weeks ago

techgo commented 3 weeks ago

Is there an existing issue for this?

Current Behavior

When I click on a user's name, go to apps and press the button "Create ticket for a user", it will prompt me to press a button that says "Create a ticket". When I press that button the interaction fails. This occurs on both the public bot and my private instance.

When attempting on the my private instance console shows no error: 26/07/24 22:24:19 [INFO] (COMMANDS) techgo used the "Create ticket for user" user command 26/07/24 22:24:27 [INFO] (BUTTONS) techgo used the "create" button image

Expected Behavior

When I press Create a ticket, it should create a ticket for the user.

Steps To Reproduce

  1. Click on a user's name,
  2. Go to apps
  3. Press the button "Create ticket for a user", it will prompt me to press a button that says "Create a ticket".
  4. Press "Create a ticket"
  5. Observe error: image

Environment

N/A - This also occurs on the public bot.

Anything else?

This bug report was made per eartharoid's request. image

eartharoid commented 2 weeks ago

It works if the guild has at least two categories configured but with only one category the prompt message is ephemeral when it shouldn't be.