Pycord-Development / pycord

Pycord is a modern, easy to use, feature-rich, and async ready API wrapper for Discord written in Python
https://docs.pycord.dev
MIT License
2.71k stars 459 forks source link

Unload cog does not remove prefix command #2499

Closed Lumabots closed 1 month ago

Lumabots commented 1 month ago

Summary

Unload cog does not remove prefix command

Reproduction Steps

unload a cog

Minimal Reproducible Code

for cog_module in list(bot.extensions)
        bot.unload_extension(cog_module)
    print(bot.prefixed_commands)

Expected Results

{}

Actual Results

list of command

Intents

all

System Information

2.6

Checklist

Additional Context

No response

NeloBlivion commented 1 month ago

Can't repro