[commands] Add back CommandOnCooldown.type

This commit is contained in:
Rapptz committed 2021-07-02 05:39:54 -04:00
1 parent 982140b5f7
commit a3d7e06f25
3 files changed
+11 -4

No files matched your search

+4
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)