diff options
Diffstat (limited to 'bot/exts/utilities')
| -rw-r--r-- | bot/exts/utilities/logging.py | 2 | ||||
| -rw-r--r-- | bot/exts/utilities/reddit.py | 5 |
2 files changed, 1 insertions, 6 deletions
diff --git a/bot/exts/utilities/logging.py b/bot/exts/utilities/logging.py index e1d09fdf..83b7025f 100644 --- a/bot/exts/utilities/logging.py +++ b/bot/exts/utilities/logging.py @@ -23,8 +23,6 @@ class Logging(Cog): async def check_channels(self) -> None: """Verifies that all channel constants refer to channels which exist.""" - await self.bot.wait_until_guild_available() - if constants.Client.debug: log.info("Skipping Channels Check.") return 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) |