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