aboutsummaryrefslogtreecommitdiffstats
path: root/bot/bot.py
diff options
context:
space:
mode:
authorGravatar xithrius <[email protected]>2021-01-24 06:52:15 -0800
committerGravatar xithrius <[email protected]>2021-01-24 06:52:15 -0800
commit53af90f92258905c2bfc4c2db2341dfd1fdc0124 (patch)
treef8d459d3e4dbe194f6ec04f886833954e1f482c2 /bot/bot.py
parentMerge branch 'master' into startup-channel-check (diff)
Fixed linting errors.
Diffstat (limited to 'bot/bot.py')
-rw-r--r--bot/bot.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/bot/bot.py b/bot/bot.py
index 112c9a48..81d59706 100644
--- a/bot/bot.py
+++ b/bot/bot.py
@@ -37,7 +37,6 @@ class Bot(commands.Bot):
self.loop.create_task(self.check_channels())
self.loop.create_task(self.send_log(self.name, "Connected!"))
-
@property
def member(self) -> Optional[discord.Member]:
"""Retrieves the guild member object for the bot."""
@@ -76,7 +75,7 @@ class Bot(commands.Bot):
"""Verifies that all channel constants refer to channels which exist."""
await self.wait_until_guild_available()
all_channels = set(self.get_all_channels())
- for name, channel_id in vars(Channels).items():
+ for name, channel_id in vars(constants.Channels).items():
if name.startswith('_'):
continue
if channel_id not in all_channels: