#@cooldown for listener

1 messages · Page 1 of 1 (latest)

echo crypt
#

Can I add a @cooldown to this? So that a user can click on this button one time in 2 seconds without spamming it.

@listen(Component)
    async def on_component(self, event: Component):
        if event.ctx.custom_id.startswith("..."):
            await ...
        else:
            pass```
abstract currentBOT
#

Hey! Once your issue is solved, press the button below to close this thread!

echo crypt
#

It does not seem to work with listeners and wait_for_component, but I hope I'm wrong

exotic perch