mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-04 17:06:21 +00:00
Slots use tuples instead now.
This commit is contained in:
@ -35,7 +35,7 @@ class BucketType(enum.Enum):
|
||||
channel = 3
|
||||
|
||||
class Cooldown:
|
||||
__slots__ = ['rate', 'per', 'type', '_window', '_tokens', '_last']
|
||||
__slots__ = ('rate', 'per', 'type', '_window', '_tokens', '_last')
|
||||
|
||||
def __init__(self, rate, per, type):
|
||||
self.rate = int(rate)
|
||||
|
Reference in New Issue
Block a user