Cog-Creators / Cog-Creators/Red-DiscordBot
More ways to set rules (Negations, neutrals, and more)
- Dominant language
- Python
- Stars
- 5.7k
- Forks
- 2.5k
- Avg merge
- 6d 16h
- Merged PRs (30d)
- 1
Description
# Feature request
#### Select the type of feature you are requesting:
- [ ] Cog
- [ ] Command
- [X] API functionality
#### Describe your requested feature
Copied from original issue (#3181):
Negations, neutrals, and more.
It's not uncommon for someone to want to restrict command or cog to a specific channel, without wanting to unlimit it in that channel. Currently, permissions can only do this by denying to each other channel manually.
The ideal solution is to add an ordered rules mode which allows expressions (such as `not channel`)
This mode *would* likely be restricted to being managed by yaml for core commands due to the interactive complexity otherwise.
The configuration would be exposed for 3rd party plugins to make it easy for 3rd paties to create rule installers which dont need to act as a permission hook to function.
Contributor guide
Assessment
This issue has not been assessed yet.