Cog-Creators / Cog-Creators/Red-DiscordBot
`[p]slash enablecog/disablecog` improperly handle force enabled commands
- Dominant language
- Python
- Stars
- 5.7k
- Forks
- 2.5k
- Avg merge
- 6d 16h
- Merged PRs (30d)
- 1
Description
### What Red version are you using?
3.5.11
### Cog name
Core
### Command name
`[p]slash enablecog` and `[p]slash disablecog`
### Describe the issue
These commands still attempt to enable/disable commands which feature the `red_force_enable` key in `extras` set to `True` when their cog is used with one of these commands. These commands should be filtered out of consideration by checking for this key, similar to how `[p]slash disable` currently does.
### How can we reproduce this error?
1. `[p]repo add zeph https://github.com/Zephyrkul/FluffyCogs`
2. `[p]cog install zeph onetrueslash`
3. `[p]load onetrueslash`
4. `[p]slash enablecog onetrueslash` - Lists the command but should not, as it is force enabled
5 `[p]slash disablecog onetrueslash` - Lists the command but should not, as it is force enabled
### Anything else?
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.