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
|
# 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 '{}'"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user