Skip to content
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

Permission system #130

Open
onerandomusername opened this issue Nov 25, 2021 · 0 comments
Open

Permission system #130

onerandomusername opened this issue Nov 25, 2021 · 0 comments
Labels
a: bot Catch all for issues regarding the bot p: normal Normal Priority s: approved The issue has received a maintainer's approval

Comments

@onerandomusername
Copy link
Member

Description

In order to manage commands and who is allowed to use what, there should be a custom permission system which can mutate the permission requirements for every command.

This should be somewhat easily doable with custom checks and a global bot check. https://discordpy.readthedocs.io/en/master/ext/commands/api.html?highlight=check#discord.ext.commands.Bot.check

Each command and cog, plus subcommands should be able to be modified who can run them. There should be defaults as decorators on each command or cog_command_check.

In addition, this system should work with interactions and slash commands, with the fork that is chosen as a result of #129

This depends on both #75 and #107

@onerandomusername onerandomusername added a: bot Catch all for issues regarding the bot p: normal Normal Priority s: approved The issue has received a maintainer's approval labels Nov 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a: bot Catch all for issues regarding the bot p: normal Normal Priority s: approved The issue has received a maintainer's approval
Projects
None yet
Development

No branches or pull requests

1 participant