aboutsummaryrefslogtreecommitdiff
path: root/discord/invite.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/invite.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/invite.py')
-rw-r--r--discord/invite.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/discord/invite.py b/discord/invite.py
index ad6b2673..d28d80c4 100644
--- a/discord/invite.py
+++ b/discord/invite.py
@@ -75,6 +75,10 @@ class Invite(Hashable):
The channel the invite is for.
"""
+
+ __slots__ = [ 'max_age', 'code', 'server', 'revoked', 'created_at', 'uses',
+ 'temporary', 'max_uses', 'xkcd', 'inviter', 'channel' ]
+
def __init__(self, **kwargs):
self.max_age = kwargs.get('max_age')
self.code = kwargs.get('code')