mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
[commands] Add back CommandOnCooldown.type
This commit is contained in:
1 parent
982140b5f7
commit
a3d7e06f25
3 files changed
+11
-4
No files matched your search
@@ -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