diff options
| author | Rapptz <[email protected]> | 2015-12-19 06:18:12 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2015-12-19 06:18:12 -0500 |
| commit | f1f0e169e425ac9c849561788281e27bd8bb0acd (patch) | |
| tree | 0a6d6717303c57e0902fd5dea043f2f83ff4a5e4 /discord/channel.py | |
| parent | Add listener for on_ready event for easier background tasks. (diff) | |
| download | discord.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.py | 2 |
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 |