From e3c4daf717833e3d10faef7ec416d4a34750aec8 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Fri, 20 May 2016 18:02:38 -0400 Subject: [PATCH] Add __slots__ for discord.Channel. Not sure why this was missing. --- discord/channel.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/discord/channel.py b/discord/channel.py index a1c6b774f..5f2f26084 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 = []