mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-08 10:53:10 +00:00
Add __slots__ where appropriate to data classes.
This commit is contained in:
@ -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')
|
||||
|
Reference in New Issue
Block a user