aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2015-12-18 21:16:55 -0500
committerRapptz <[email protected]>2015-12-18 21:16:55 -0500
commit037d3ab08a58cdb6751f2d686a72bce986fd2a3e (patch)
treebe8cc1cb6104f3848fdfd61d26ede9b5c72aef89
parentFix GUILD_MEMBER_UPDATE and GUILD_UPDATE not triggering. (diff)
downloaddiscord.py-037d3ab08a58cdb6751f2d686a72bce986fd2a3e.tar.xz
discord.py-037d3ab08a58cdb6751f2d686a72bce986fd2a3e.zip
Move email out of ConnectionState.
-rw-r--r--discord/client.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/discord/client.py b/discord/client.py
index 21bd30b8..97915121 100644
--- a/discord/client.py
+++ b/discord/client.py
@@ -237,15 +237,14 @@ class Client:
raise InvalidArgument('Destination must be Channel, PrivateChannel, User, or Object')
def __getattr__(self, name):
- if name in ('user', 'email', 'servers', 'private_channels', 'messages'):
+ if name in ('user', 'servers', 'private_channels', 'messages'):
return getattr(self.connection, name)
else:
msg = "'{}' object has no attribute '{}'"
raise AttributeError(msg.format(self.__class__, name))
def __setattr__(self, name, value):
- if name in ('user', 'email', 'servers', 'private_channels',
- 'messages'):
+ if name in ('user', 'servers', 'private_channels', 'messages'):
return setattr(self.connection, name, value)
else:
object.__setattr__(self, name, value)