Improve code
This commit is contained in:
parent
997c8d3742
commit
a78ad8796f
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user