aboutsummaryrefslogtreecommitdiffstats
path: root/bot/bot.py
diff options
context:
space:
mode:
authorGravatar kwzrd <[email protected]>2020-04-03 22:20:42 +0200
committerGravatar kwzrd <[email protected]>2020-04-03 22:20:42 +0200
commit6af47f80d73b5bb5f13710cef0e76530838a4aa8 (patch)
treed3dd6677b506505896881a2068b43c2cbf17be4c /bot/bot.py
parentMerge pull request #329 from python-discord/seasonal-purge (diff)
Ensure cache is ready before grabbing devlog channel
Diffstat (limited to 'bot/bot.py')
-rw-r--r--bot/bot.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bot/bot.py b/bot/bot.py
index 87575fde..4d5397ca 100644
--- a/bot/bot.py
+++ b/bot/bot.py
@@ -148,6 +148,7 @@ class SeasonalBot(commands.Bot):
async def send_log(self, title: str, details: str = None, *, icon: str = None) -> None:
"""Send an embed message to the devlog channel."""
+ await self.wait_until_ready()
devlog = self.get_channel(Channels.devlog)
if not devlog: