aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_core/_bot.py
diff options
context:
space:
mode:
Diffstat (limited to 'pydis_core/_bot.py')
-rw-r--r--pydis_core/_bot.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pydis_core/_bot.py b/pydis_core/_bot.py
index 0d0682f7..b45647f3 100644
--- a/pydis_core/_bot.py
+++ b/pydis_core/_bot.py
@@ -119,7 +119,10 @@ class BotBase(commands.Bot):
async def _load_extensions(self, module: types.ModuleType) -> None:
"""Load all the extensions within the given module and save them to ``self.all_extensions``."""
+ log.info("Waiting for guild %d to be avialable before loading extensions.", self.guild_id)
+
await self.wait_until_guild_available()
+ log.info("Loading extensions...")
self.all_extensions = walk_extensions(module)
for extension in self.all_extensions: