From 952a3a7849d4694cc3e4aa89021d3c976cdc537b Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Fri, 23 Sep 2022 22:12:26 +0100 Subject: Remove all wait_until_guil_available as this is now done in bot-core --- bot/exts/utilities/reddit.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'bot/exts/utilities/reddit.py') 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) -- cgit v1.2.3