Improve code

This commit is contained in:
luk3yx 2022-10-20 16:09:28 +13:00 committed by archfan
parent 997c8d3742
commit a78ad8796f

View File

@ -101,7 +101,7 @@ async def handle(request):
if data['type'] == 'DISCORD_LOGIN_RESULT':
user_id = int(data['user_id'])
user = bot.get_partial_messageable(user_id)
if data['success'] is True:
if data['success']:
authenticated_users[user_id] = data['username']
await user.send('Login successful.')
else: