mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 18:27:59 -05:00
[Downloader] Fix [p]findcog not working with different levels of imports (#3178)
* Update downloader.py * Create 3177.bugfix.rst
This commit is contained in:
@@ -1179,7 +1179,7 @@ class Downloader(commands.Cog):
|
||||
|
||||
"""
|
||||
splitted = instance.__module__.split(".")
|
||||
return splitted[-2]
|
||||
return splitted[0]
|
||||
|
||||
@commands.command()
|
||||
async def findcog(self, ctx: commands.Context, command_name: str) -> None:
|
||||
|
||||
Reference in New Issue
Block a user