diff options
| author | Rapptz <[email protected]> | 2015-10-11 05:35:10 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2015-10-11 05:35:10 -0400 |
| commit | 66c39b6151b039fdf83b46e1f8d67c067ad26045 (patch) | |
| tree | 7f4284dac93073faf5b430518e87e55d319514a9 | |
| parent | Use v3 of the Discord API. (diff) | |
| download | discord.py-66c39b6151b039fdf83b46e1f8d67c067ad26045.tar.xz discord.py-66c39b6151b039fdf83b46e1f8d67c067ad26045.zip | |
Remove get_channel from __getattr__ in Client.
| -rw-r--r-- | discord/client.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/discord/client.py b/discord/client.py index 38f12d36..9a840725 100644 --- a/discord/client.py +++ b/discord/client.py @@ -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 '{}'" |