From f1f0e169e425ac9c849561788281e27bd8bb0acd Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sat, 19 Dec 2015 06:18:12 -0500 Subject: Add __slots__ where appropriate to data classes. --- discord/channel.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'discord/channel.py') diff --git a/discord/channel.py b/discord/channel.py index b342d9e7..814e940f 100644 --- a/discord/channel.py +++ b/discord/channel.py @@ -225,6 +225,8 @@ class PrivateChannel(Hashable): ``True`` if the channel is a private channel (i.e. PM). ``True`` in this case. """ + __slots__ = ['user', 'id', 'is_private'] + def __init__(self, user, id, **kwargs): self.user = user self.id = id -- cgit v1.2.3