aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--discord/client.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/discord/client.py b/discord/client.py
index 59c19d31..a97eef18 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()