diff options
author | 2022-09-23 22:12:26 +0100 | |
---|---|---|
committer | 2022-09-23 22:12:26 +0100 | |
commit | 952a3a7849d4694cc3e4aa89021d3c976cdc537b (patch) | |
tree | 4d9a9684d6c0d8f1f749355353fbadb7fd89960b /bot/exts/utilities/reddit.py | |
parent | Update games cog token refresh logic (diff) |
Remove all wait_until_guil_available as this is now done in bot-core
Diffstat (limited to 'bot/exts/utilities/reddit.py')
-rw-r--r-- | bot/exts/utilities/reddit.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/bot/exts/utilities/reddit.py b/bot/exts/utilities/reddit.py index 07222d79..028c16bc 100644 --- a/bot/exts/utilities/reddit.py +++ b/bot/exts/utilities/reddit.py @@ -48,9 +48,7 @@ class Reddit(Cog): async def cog_load(self) -> None: """Sets the reddit webhook when the cog is loaded.""" - await self.bot.wait_until_guild_available() - if not self.webhook: - self.webhook = await self.bot.fetch_webhook(RedditConfig.webhook) + self.webhook = await self.bot.fetch_webhook(RedditConfig.webhook) @property def channel(self) -> TextChannel: @@ -256,7 +254,6 @@ class Reddit(Cog): await sleep_until(midnight_tomorrow) - await self.bot.wait_until_guild_available() if not self.webhook: await self.bot.fetch_webhook(RedditConfig.webhook) |