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/invite.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'discord/invite.py') 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') -- cgit v1.2.3