Skip to content

Commit 43c8d2b

Browse files
committed
Replace __module__ with inspect.getmodule
1 parent 31a003b commit 43c8d2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydis_core/exts/source.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ async def _get_source_object(ctx: commands.Context["Bot"], argument: str) -> tup
8585

8686
cog = ctx.bot.get_cog(argument)
8787
if cog:
88-
if cog.__module__.startswith("pydis_core.exts"):
88+
if inspect.getmodule(cog).__name__.startswith("pydis_core.exts"):
8989
return cog, _SourceType.core_cog
9090
return cog, _SourceType.cog
9191

0 commit comments

Comments
 (0)