diff options
| author | 2025-11-09 23:47:36 +0000 | |
|---|---|---|
| committer | 2025-11-10 23:19:27 +0000 | |
| commit | 5a25124ddd24ee6bda79694feed7ce3931b318b2 (patch) | |
| tree | 828cee3797ba706ca4e97deec107ee159756d704 | |
| parent | Trim trailing / from GitHub Repo (diff) | |
Replace __module__ with inspect.getmodule
| -rw-r--r-- | pydis_core/exts/source.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |