From 5a25124ddd24ee6bda79694feed7ce3931b318b2 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 95f3e967..6c84ae5f 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