mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Add __slots__ where appropriate to data classes.
This commit is contained in:
1 parent
4fa5b50d2b
commit
f1f0e169e4
10 files changed
+33
-12
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user