logs: fix on_member_join crash

This commit is contained in:
Thog 2020-04-08 20:14:25 +02:00
parent 88f1d5200d
commit 06c5c63a6f

View file

@ -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)