mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-21 00:07:51 +00:00
Fix bug with edit_profile for user accounts
This commit is contained in:
parent
e64eb08c92
commit
6061f83c3f
@ -1498,7 +1498,7 @@ class Client:
|
||||
if 'new_password' in fields:
|
||||
args['new_password'] = fields['new_password']
|
||||
|
||||
yield from self.http.edit_profile(**args)
|
||||
data = yield from self.http.edit_profile(**args)
|
||||
if not_bot_account:
|
||||
self.email = data['email']
|
||||
if 'token' in data:
|
||||
|
Loading…
x
Reference in New Issue
Block a user