Cog-Creators / Cog-Creators/Red-DiscordBot

`[p]slash enablecog/disablecog` improperly handle force enabled commands

Open
#6,487 2 comments 0 reactions 0 assignees View on GitHub
Category: Core - Bot Commands Status: PRs Welcome Type: Bug
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.