We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31a003b commit 43c8d2bCopy full SHA for 43c8d2b
1 file changed
pydis_core/exts/source.py
@@ -85,7 +85,7 @@ async def _get_source_object(ctx: commands.Context["Bot"], argument: str) -> tup
85
86
cog = ctx.bot.get_cog(argument)
87
if cog:
88
- if cog.__module__.startswith("pydis_core.exts"):
+ if inspect.getmodule(cog).__name__.startswith("pydis_core.exts"):
89
return cog, _SourceType.core_cog
90
return cog, _SourceType.cog
91
0 commit comments