diff options
| author | Rapptz <[email protected]> | 2016-05-20 18:02:38 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2016-05-20 18:11:58 -0400 |
| commit | e3c4daf717833e3d10faef7ec416d4a34750aec8 (patch) | |
| tree | c52ba37e89ae029ee2dc480ce807f8f33dc74d87 | |
| parent | Add support for voice channel user limits. (diff) | |
| download | discord.py-e3c4daf717833e3d10faef7ec416d4a34750aec8.tar.xz discord.py-e3c4daf717833e3d10faef7ec416d4a34750aec8.zip | |
Add __slots__ for discord.Channel.
Not sure why this was missing.
| -rw-r--r-- | discord/channel.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/discord/channel.py b/discord/channel.py index a1c6b774..5f2f2608 100644 --- a/discord/channel.py +++ b/discord/channel.py @@ -84,6 +84,10 @@ class Channel(Hashable): The channel's limit for number of members that can be in a voice channel. """ + __slots__ = [ 'voice_members', 'name', 'id', 'server', 'topic', 'position', + 'is_private', 'type', 'bitrate', 'changed_roles', + 'user_limit', '_permission_overwrites' ] + def __init__(self, **kwargs): self._update(**kwargs) self.voice_members = [] |