Merge pull request #66 from Ryujinx/fix/logs-on_member_join

logs: fix on_member_join crash
This commit is contained in:
Ave 2020-04-08 21:25:18 +03:00 committed by GitHub
commit 9433380a69
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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