aboutsummaryrefslogtreecommitdiff
path: root/discord/channel.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2015-12-19 06:18:12 -0500
committerRapptz <[email protected]>2015-12-19 06:18:12 -0500
commitf1f0e169e425ac9c849561788281e27bd8bb0acd (patch)
tree0a6d6717303c57e0902fd5dea043f2f83ff4a5e4 /discord/channel.py
parentAdd listener for on_ready event for easier background tasks. (diff)
downloaddiscord.py-f1f0e169e425ac9c849561788281e27bd8bb0acd.tar.xz
discord.py-f1f0e169e425ac9c849561788281e27bd8bb0acd.zip
Add __slots__ where appropriate to data classes.
Diffstat (limited to 'discord/channel.py')
-rw-r--r--discord/channel.py2
1 files changed, 2 insertions, 0 deletions
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