Removes slash command permission setting by bulk update method as it's no longer supported by Discord in permissions v2. Moves role permission checks into a handler which checks permissions on interactionCreate event. Removes the default permissions false setting for the slash commands. Guild members will be able to launch all slash commands but a reply error message is presented for commands where the user does not have permission (similar to current text commands).
Any helpful knowledge/context for the reviewer?
Is a re-seeding of the database necessary? No
Any new dependencies to install? No
Any special requirements to test?
Redeploy the commands with deployCommands.js.
Check Discord Server Settings - Interactions - "Your test bot" to see the current "Discord" permissions for your slash commands. Confirm that your bot slash commands are availabe to @everyone and All channels and are Synced. It's possible you may need to adjust the settings since they were previously limited to some roles. Basically, all users should have access to all slash commands in the Discord settings (since we handle the permissions with the bot).
Please make sure you've attempted to meet the following coding standards
[X] Code has been tested and does not produce errors
[X] Code is readable and formatted
[X] There isn't any unnecessary commented-out code
What issue is this solving?
Closes #321
Description
Removes slash command permission setting by bulk update method as it's no longer supported by Discord in permissions v2. Moves role permission checks into a handler which checks permissions on interactionCreate event. Removes the default permissions false setting for the slash commands. Guild members will be able to launch all slash commands but a reply error message is presented for commands where the user does not have permission (similar to current text commands).
Any helpful knowledge/context for the reviewer?
Please make sure you've attempted to meet the following coding standards