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
880 stars 459 forks source link

[BUG] empty category blocks command execution #505

Open markusobi0 opened 8 months ago

markusobi0 commented 8 months ago

Is there an existing issue for this?

Current Behavior

If you create a new category and do not place it directly in a panel or do not create a ticket directly via /new, some commands such as /close or /move can no longer be executed.

Expected Behavior

An empty category should not affect or prevent ticket handling

Steps To Reproduce

  1. Create an empty Category
  2. Create in another Category a Ticket
  3. Try to move or close the Ticket via /move or /close

Environment

- OS: Ubuntu 20.04.5 LTS
- Node: Node.js v18.17.1
- NPM: Not known
- Bot: 4.0.10

Anything else?

image image

A restart of the bot container doesn't help

markusobi0 commented 8 months ago

Workaround: Create a Testticket via /new in the new empty category and close it.