Sometimes when making changes to the codebase, some commands end up duplicating on Discord's frontend. To alleviate this issue, we must remove the commands from commands.js and then put them back. While this is one solution, the issue is that this requires a developer to do this manually and it takes 2 hours for the commands to properly reset.
Solution 1:
Have a bash script that handles this manually in prod.
Solution 2:
Research Discord.js to see if there is a method to properly reset commands.
Sometimes when making changes to the codebase, some commands end up duplicating on Discord's frontend. To alleviate this issue, we must remove the commands from commands.js and then put them back. While this is one solution, the issue is that this requires a developer to do this manually and it takes 2 hours for the commands to properly reset.
Solution 1:
Have a bash script that handles this manually in prod.
Solution 2:
Research Discord.js to see if there is a method to properly reset commands.