aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/utilities/reddit.py
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2022-09-23 22:12:26 +0100
committerGravatar Chris Lovering <[email protected]>2022-09-23 22:12:26 +0100
commit952a3a7849d4694cc3e4aa89021d3c976cdc537b (patch)
tree4d9a9684d6c0d8f1f749355353fbadb7fd89960b /bot/exts/utilities/reddit.py
parentUpdate 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.py5
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)