aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-02-23 22:13:45 -0500
committerRapptz <[email protected]>2017-02-23 22:13:45 -0500
commite16a1e583eed73433bdb94c64bbd999dbcf2b1c7 (patch)
tree0f752186df45364045e0e16779fd13d663467f22
parentFall back to single message delete in Messageable.purge (diff)
downloaddiscord.py-e16a1e583eed73433bdb94c64bbd999dbcf2b1c7.tar.xz
discord.py-e16a1e583eed73433bdb94c64bbd999dbcf2b1c7.zip
Remove Client.email attribute.
Use ClientUser.email instead.
-rw-r--r--discord/client.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/discord/client.py b/discord/client.py
index 9d3ea761..e3519a27 100644
--- a/discord/client.py
+++ b/discord/client.py
@@ -97,9 +97,6 @@ class Client:
Attributes
-----------
- email
- The email used to login. This is only set if login is successful,
- otherwise it's None.
ws
The websocket gateway the client is currently connected to. Could be None.
loop
@@ -107,7 +104,6 @@ class Client:
"""
def __init__(self, *, loop=None, **options):
self.ws = None
- self.email = None
self.loop = asyncio.get_event_loop() if loop is None else loop
self._listeners = {}
self.shard_id = options.get('shard_id')
@@ -336,7 +332,6 @@ class Client:
log.info('logging in using static token')
data = yield from self.http.static_login(token, bot=bot)
- self.email = data.get('email', None)
self.connection.is_bot = bot
@asyncio.coroutine