We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6c22b9 commit 914dd86Copy full SHA for 914dd86
interactions/models/internal/cooldowns.py
@@ -330,7 +330,7 @@ def __init__(
330
self.rate: int = rate
331
self.interval: float = interval
332
333
- self.cooldown_system: Type[CooldownSystem] = cooldown_system
+ self.cooldown_system: Type[CooldownSystem] = cooldown_system or CooldownSystem
334
335
async def get_cooldown(self, context: "BaseContext") -> "CooldownSystem":
336
key = await self.bucket(context)
0 commit comments