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] TypeError [InvalidType]: Supplied parameter is not a User nor a Role #518

Closed eartharoid closed 4 months ago

eartharoid commented 6 months ago

Is there an existing issue for this?

Current Behavior

Unexpected error when creating a ticket if a staff role has been deleted

Expected Behavior

Catch this error and give a useful message with steps to resolve

Steps To Reproduce

  1. Create a category
  2. Delete one of its staff roles
  3. Create a ticket

Environment

- OS:
- Node:
- NPM:
- Bot: 4.0.13

Anything else?

This is the most common unexpected error