Add try to see why on_member_join is not working.

This commit is contained in:
Dustin Pianalto 2019-12-15 00:35:28 -09:00
parent 7500a17c85
commit 9677b8b368

View File

@ -42,6 +42,7 @@ class UserEvents(commands.Cog):
@commands.Cog.listener()
async def on_member_join(self, member):
try:
data = {
'id': member.id,
'username': member.username,
@ -66,6 +67,8 @@ class UserEvents(commands.Cog):
json=data)
msg = await resp.json()
user_logger.info(f'User Joined: {msg}')
except Exception as e:
user_logger.error(e)
@commands.Cog.listener()
async def on_member_remove(self, member):