From 06c5c63a6fb43633b1297dfd184d838f790a8890 Mon Sep 17 00:00:00 2001 From: Thog Date: Wed, 8 Apr 2020 20:14:25 +0200 Subject: [PATCH] logs: fix on_member_join crash --- cogs/logs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/logs.py b/cogs/logs.py index 66901f9..122c2f2 100644 --- a/cogs/logs.py +++ b/cogs/logs.py @@ -36,7 +36,7 @@ class Logs(Cog): async def on_member_join(self, member): await self.bot.wait_until_ready() - if (member_after.guild.id not in config.guild_whitelist): + if (member.guild.id not in config.guild_whitelist): return log_channel = self.bot.get_channel(config.log_channel)