logs: fix on_member_join crash
This commit is contained in:
parent
88f1d5200d
commit
06c5c63a6f
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ class Logs(Cog):
|
||||||
async def on_member_join(self, member):
|
async def on_member_join(self, member):
|
||||||
await self.bot.wait_until_ready()
|
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
|
return
|
||||||
|
|
||||||
log_channel = self.bot.get_channel(config.log_channel)
|
log_channel = self.bot.get_channel(config.log_channel)
|
||||||
|
|
Loading…
Reference in a new issue