Always throw CooldownError even when cooldown has a callback

This commit is contained in:
Ben 2020-02-14 22:01:16 +00:00
parent c1bd04fe3a
commit 94a7a963a7

View File

@ -58,7 +58,6 @@ class _ArgumentDeserializer:
await self.cooldown.callback(self.instance, p) await self.cooldown.callback(self.instance, p)
else: else:
await self.cooldown.callback(p) 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): def _check_list(self, p):