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
933 stars 477 forks source link

priority and remove js - some changes #464

Closed Saunakghosh10 closed 9 months ago

Saunakghosh10 commented 1 year ago

FOR PRIORITY.JS FILE -

Added type annotations to function parameters. Updated the ApplicationCommandOptionType import to use the correct module. Updated the ExtendedEmbedBuilder import to the correct location. Removed unnecessary comments. Formatted the code for readability.

FOR REMOVE.JS FILE -

Updated the ApplicationCommandOptionType import to use the correct module. Updated the ExtendedEmbedBuilder import to the correct location. Removed unnecessary comments. Formatted the code for readability.

eartharoid commented 1 year ago

Are you sure the imports are correct....? And although I prefer the extra indent in the switch case block, it is seemingly standard to not indent cases, probably to prevent extreme indents. You need to change the eslint rules if you want to switch.

But I don't know why it's a switch/case block anyway. It should just be an object/map.

Saunakghosh10 commented 1 year ago

yes sure