[commands] Add back CommandOnCooldown.type

This commit is contained in:
Rapptz
2021-07-02 05:39:54 -04:00
parent 982140b5f7
commit a3d7e06f25
3 changed files with 11 additions and 4 deletions

View File

@ -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)