mirror of
https://github.com/solero/houdini.git
synced 2025-08-08 19:54:06 +00:00
Always throw CooldownError
even when cooldown has a callback
This commit is contained in:
@@ -58,8 +58,7 @@ class _ArgumentDeserializer:
|
||||
await self.cooldown.callback(self.instance, p)
|
||||
else:
|
||||
await self.cooldown.callback(p)
|
||||
else:
|
||||
raise CooldownError(f'{p} invoked listener during cooldown')
|
||||
raise CooldownError(f'{p} invoked listener during cooldown')
|
||||
|
||||
def _check_list(self, p):
|
||||
if not self._can_run(p):
|
||||
|
Reference in New Issue
Block a user