Skip to content

Commit

Permalink
Save email when login with a token on a user account
Browse files Browse the repository at this point in the history
  • Loading branch information
PapyrusThePlant committed Jul 6, 2016
1 parent 166d825 commit 18e77f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion discord/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,8 @@ def on_error(self, event_method, *args, **kwargs):
def _login_1(self, token, **kwargs):
log.info('logging in using static token')
is_bot = kwargs.pop('bot', True)
yield from self.http.static_login(token, bot=is_bot)
data = yield from self.http.static_login(token, bot=is_bot)
self.email = data.get('email', None)
self.connection.is_bot = is_bot
self._is_logged_in.set()

Expand Down

0 comments on commit 18e77f3

Please sign in to comment.