mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-05 01:16:21 +00:00
[commands] Add back CommandOnCooldown.type
This commit is contained in:
@ -148,6 +148,10 @@ class CooldownMapping:
|
||||
def valid(self):
|
||||
return self._cooldown is not None
|
||||
|
||||
@property
|
||||
def type(self):
|
||||
return self._type
|
||||
|
||||
@classmethod
|
||||
def from_cooldown(cls, rate, per, type):
|
||||
return cls(Cooldown(rate, per), type)
|
||||
|
Reference in New Issue
Block a user