mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-08 19:03:03 +00:00
Remove get_channel from __getattr__ in Client.
This commit is contained in:
@ -404,8 +404,7 @@ class Client(object):
|
|||||||
|
|
||||||
# Compatibility shim
|
# Compatibility shim
|
||||||
def __getattr__(self, name):
|
def __getattr__(self, name):
|
||||||
if name in ('user', 'email', 'servers', 'private_channels', 'messages',
|
if name in ('user', 'email', 'servers', 'private_channels', 'messages'):
|
||||||
'get_channel'):
|
|
||||||
return getattr(self.connection, name)
|
return getattr(self.connection, name)
|
||||||
else:
|
else:
|
||||||
msg = "'{}' object has no attribute '{}'"
|
msg = "'{}' object has no attribute '{}'"
|
||||||
|
Reference in New Issue
Block a user