From 18e77f356d33e675894b27e50c9b9e4ee2b120ec Mon Sep 17 00:00:00 2001 From: PapyrusThePlant Date: Wed, 6 Jul 2016 17:38:41 +0200 Subject: [PATCH] Save email when login with a token on a user account --- discord/client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/discord/client.py b/discord/client.py index 59c19d318..a97eef182 100644 --- a/discord/client.py +++ b/discord/client.py @@ -311,7 +311,8 @@ class Client: 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()