Is there a way to find all the loaded and unloaded cogs in discord.py-rewrite
问题 I have a lot of cogs for my bot, but i load and unload them using commands Still I get confused and load/unload a cog again-and-again I wonder is there a way to check all the loaded and unloaded cogs using commands.(Other than the default help command) 回答1: Looking at discord.py documentation, if you try to load a cog that is already loaded, it will raise a discord.ext.commands.ExtensionAlreadyLoaded exception. Using this error, you could do this: from discord import commands bot = commands