Browse Source

Fix bug with edit_profile for user accounts

pull/254/head
Harmon758 9 years ago
parent
commit
6061f83c3f
  1. 2
      discord/client.py

2
discord/client.py

@ -1498,7 +1498,7 @@ class Client:
if 'new_password' in fields: if 'new_password' in fields:
args['new_password'] = fields['new_password'] 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: if not_bot_account:
self.email = data['email'] self.email = data['email']
if 'token' in data: if 'token' in data:

Loading…
Cancel
Save