mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -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:
parent
0f62614055
commit
9a051ef2c6
1
changelog.d/downloader/3177.bugfix.rst
Normal file
1
changelog.d/downloader/3177.bugfix.rst
Normal file
@ -0,0 +1 @@
|
||||
``[p]findcog`` now properly works for cogs with less typical folder structure.
|
||||
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user