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
898 stars 473 forks source link

fix: use category name and emoji when only one category is selected #451

Closed edrcq closed 1 year ago

edrcq commented 1 year ago

fix: use category name and emoji when only one category is selected

Versioning information

Is this related to an issue?

Related issue: #450

Changes made

I changed the behavior of creating a new panel. It now use the category name and emoji if only one Category is selected. I changed the style by the Secondary style like if we choose multiple categories.

Confirmations

eartharoid commented 1 year ago

As discussed at https://ptb.discord.com/channels/451745464480432129/1123942139173286059, the button is intentionally different when only one category is selected because a single button that says "Create a ticket" makes a lot more sense than a lonely button that says "Billing". For that reason, I don't consider this PR an improvement so I am going to close it.

I will keep the related issue (#450) open because making the single button customisable is a possibility.