-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: Update permCheck.ts #112
Conversation
Allows users to check member perms before using specific sub command groups, sub commands, and options!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well done, @jacoobes or @EvolutionX-10 can check if i got some reviews & javacsript syntax fixes right
Reverted permCheck back to a function to avoid breaking changes.
Remove console logs
Fixed overall formatting simplified ephemeral booleans No longer destructuring interaction from ctx fixed in guild from not fully returning controller.stop() remove `no_guild` function in favor of hard coding imported type CommandType
If anyone is in favor of |
Remove ALL destructures `({ ctx })` --> `(ctx)`
edit response for not being in guild
Remove all breaking changes while maintaining integrity of new features as well as original!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assigned functions to object with help of @jacoobes !
Thanks to Duro for simplifying the code into one function!
@sernbot ready to merge |
Allows users to check member perms before using specific sub command groups, sub commands, and options!
Plugin Submission Checklist
Before submitting your plugin, please ensure that you have followed the specifications below:
@plugin
at the beginning and@end
at the end.@plugin
description
@author
(you can have multiple authors in this format:@author @jacoobes [<@182326315813306368>]
)@version
(with the version number)@example
(a nice example of how to use your plugin)@end
this is an example:
Plugin Submission Details
Allows users to dynamically require certain permissions to use separate subcommands, subcommand groups, and hoisted options.
Additional Notes
Reverted the original function and changed the parameters up a bit.