Skip to content

Commit 914dd86

Browse files
committed
fix: handle no specified cooldown system
1 parent c6c22b9 commit 914dd86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interactions/models/internal/cooldowns.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ def __init__(
330330
self.rate: int = rate
331331
self.interval: float = interval
332332

333-
self.cooldown_system: Type[CooldownSystem] = cooldown_system
333+
self.cooldown_system: Type[CooldownSystem] = cooldown_system or CooldownSystem
334334

335335
async def get_cooldown(self, context: "BaseContext") -> "CooldownSystem":
336336
key = await self.bucket(context)

0 commit comments

Comments
 (0)