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

[BUG] Moving a category removes the priority emoji #467

Closed eartharoid closed 1 year ago

eartharoid commented 1 year ago

Is there an existing issue for this?

Current Behavior

https://github.com/discord-tickets/bot/blob/a1be71c5d7002da5d5e3a6fba45906dd73256b3a/src/commands/slash/move.js#L132

Using /move also overwrites the channel name, as expected to ensure the ticket is consistent with the new category's name_format, however, it doesn't add the priority emoji back.

Expected Behavior

Keep the emoji previously set with /priority.

Steps To Reproduce

  1. /priority priority: HIGH
  2. /move category: Management

Environment

- OS:
- Node:
- NPM:
- Bot: 4.0.7

Anything else?

Found by @nico_3108 on Discord