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 a3d35ac commit 5a25124Copy full SHA for 5a25124
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