Skip to content
This repository was archived by the owner on Sep 18, 2024. It is now read-only.

Conversation

@YorkAARGH
Copy link
Member

Please describe the changes this PR makes and why it should be merged, as well as any and all proof of successful tests:

The nature of this PR is to expand the permission checking that guidebot deploys with legacy commands to interaction commands until finer permission tuning is possible with slash commands.

The big caveat of expanding the custom permission system is that all slash commands (global and guild) will be seen as "usable" to every single user regardless.

For the Guild VS Global command discussion, additional logic will be required within the interaction, and or command to prevent execution of guild intended commands such as moderative, or server info commands in the global scope.

Semantic versioning classification:

  • This PR changes the framework's interface (methods or parameters added)
    • This PR includes breaking changes (methods removed or renamed, parameters moved or removed)
  • This PR only includes non-code changes, like changes to README, etc.

Due to the current limitations of the permission system for slash commands we essentially extend the functionality of our permission checking system to the slash commands.
Forgot to revert testing parameters.
Updated the comments in the deploy command.
Fixed the help command, it will now respond if you supply an invalid command name, or alias.

It will now display the help message if an alias is supplied.

Updated the `messageCreate` event to output the error into the console.

Updated the example config to take advantage of the Nullish coalescing operator
This resolves #153, instead of over-engineering the issue it was successfully reduced to this thanks to @WilsontheWolf
@Fierythunder
Copy link
Contributor

All permission levels are working!

@Fierythunder
Copy link
Contributor

Capture

If the command executioner can, or can't execute the command with the nature of the permission system we **must** respond otherwise it will error out and inform the user that it failed, giving them the illusion that they can use the command.
@YorkAARGH YorkAARGH added enhancement guidebot-class The class version of guidebot help wanted guidebot The original version of guidebot. and removed guidebot-class The class version of guidebot labels Sep 14, 2021
@YorkAARGH YorkAARGH merged commit f7066ed into master Sep 25, 2021
@YorkAARGH YorkAARGH deleted the SlashPerms branch September 25, 2021 16:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement guidebot The original version of guidebot. help wanted

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants