Remove Client.email attribute.
Use ClientUser.email instead.
This commit is contained in:
parent
0e8b260d45
commit
e16a1e583e
@ -97,9 +97,6 @@ class Client:
|
|||||||
|
|
||||||
Attributes
|
Attributes
|
||||||
-----------
|
-----------
|
||||||
email
|
|
||||||
The email used to login. This is only set if login is successful,
|
|
||||||
otherwise it's None.
|
|
||||||
ws
|
ws
|
||||||
The websocket gateway the client is currently connected to. Could be None.
|
The websocket gateway the client is currently connected to. Could be None.
|
||||||
loop
|
loop
|
||||||
@ -107,7 +104,6 @@ class Client:
|
|||||||
"""
|
"""
|
||||||
def __init__(self, *, loop=None, **options):
|
def __init__(self, *, loop=None, **options):
|
||||||
self.ws = None
|
self.ws = None
|
||||||
self.email = None
|
|
||||||
self.loop = asyncio.get_event_loop() if loop is None else loop
|
self.loop = asyncio.get_event_loop() if loop is None else loop
|
||||||
self._listeners = {}
|
self._listeners = {}
|
||||||
self.shard_id = options.get('shard_id')
|
self.shard_id = options.get('shard_id')
|
||||||
@ -336,7 +332,6 @@ class Client:
|
|||||||
|
|
||||||
log.info('logging in using static token')
|
log.info('logging in using static token')
|
||||||
data = yield from self.http.static_login(token, bot=bot)
|
data = yield from self.http.static_login(token, bot=bot)
|
||||||
self.email = data.get('email', None)
|
|
||||||
self.connection.is_bot = bot
|
self.connection.is_bot = bot
|
||||||
|
|
||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
|
Loading…
x
Reference in New Issue
Block a user