From 43c8d2b61f97ac00fccda1806d345791bb3ea10e Mon Sep 17 00:00:00 2001 From: Joe Banks Date: Sun, 9 Nov 2025 23:47:36 +0000 Subject: Replace __module__ with inspect.getmodule --- pydis_core/exts/source.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pydis_core/exts/source.py b/pydis_core/exts/source.py index 807fd666..1fc2aa02 100644 --- a/pydis_core/exts/source.py +++ b/pydis_core/exts/source.py @@ -85,7 +85,7 @@ class SourceCode(commands.Cog, description="Displays information about the bot's cog = ctx.bot.get_cog(argument) if cog: - if cog.__module__.startswith("pydis_core.exts"): + if inspect.getmodule(cog).__name__.startswith("pydis_core.exts"): return cog, _SourceType.core_cog return cog, _SourceType.cog -- cgit v1.2.3