aboutsummaryrefslogtreecommitdiff
path: root/discord/client.py
diff options
context:
space:
mode:
authorPapyrusThePlant <[email protected]>2016-07-06 17:38:41 +0200
committerPapyrusThePlant <[email protected]>2016-07-06 17:38:41 +0200
commit18e77f356d33e675894b27e50c9b9e4ee2b120ec (patch)
treede60d61cae88e5cd7106a061b5e1d8132f6fd52b /discord/client.py
parent[commands] Refactor pagination into its own class. (diff)
downloaddiscord.py-18e77f356d33e675894b27e50c9b9e4ee2b120ec.tar.xz
discord.py-18e77f356d33e675894b27e50c9b9e4ee2b120ec.zip
Save email when login with a token on a user account
Diffstat (limited to 'discord/client.py')
-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()