Skip to content

Unloading an extension does not remove bridge & prefix commands #2976

@Soheab

Description

@Soheab

Summary

As the title says, when you unload an extension that includes a cog with prefix or bridge commands, it does not remove those commands. This is similar to #2015, but slash commands do get unloaded now.

Reproduction Steps

  1. Define an extension.
  2. Define a Cog inside it.
  3. Add prefix, bridge, and slash commands inside the Cog.
  4. Load the extension.
  5. Run the commands.
  6. Unload the extension.
  7. Observe the bridge and prefix commands still working fine.

Minimal Reproducible Code

Todo

Expected Results

I expected the bridge and prefix commands to not work anymore, just like the slash commands in the same cog.

Actual Results

The bridge and prefix still function, as if the extension is still loaded.

Intents

Not relevant

System Information

TODO

Checklist

  • I have searched the open issues for duplicates.
  • I have shown the entire traceback, if possible.
  • I have removed my token from display, if visible.

Additional Context

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingext.bridgeRelating to ext.bridge

Type

Projects

Status

No status

Relationships

None yet

Development

No branches or pull requests

Issue actions