Added instructions on how to update NodeJS version in the error message
Added a function ensureUserData to handle the logic of adding user data to the database, reducing code duplication and enhancing code modularity.
Modifications:
The bot now requires a NodeJS version of 18 or higher
Updated Discord.js to v14.14.1
Updated all npm packages
Improved addon loading
Improved slash commands loading
All addons loaded will now be logged to the terminal
All moderation command interactions are now deferred, this should fix issues with commands not working/responding
We've enhanced error handling by automating the upload of the 'logs.txt' file to our paste server. This means you can easily share the link with us when creating a support ticket for quick review.
Fixed a bug that inaccurately triggered the 'slash commands unavailable' error, now it shows the actual error
Fixed an issue causing Used disallowed intents error to not be caught
Fixed "glob is not a function" error
Fixed an issue causing the ban command to not work in some cases
Fixed an issue causing the music pause command to not work
Fixed an issue causing the music volume command to not work
Fixed some errors and issues with the music system
Fixed an issue causing the rank command to not work because of discord discriminators no longer existing