discord-interactions.py

CommandOnCooldown

Exception

Command on cooldown; retry_after gives the wait in seconds.

from discord_interactions import CommandOnCooldown

Extends SlashCommandError

Constructor

CommandOnCooldown(cooldown_type: str, retry_after: float, command_name: str)
NameTypeDefaultDescription
cooldown_typestrrequired
retry_afterfloatrequired
command_namestrrequired

Type a name: create_button, ModalBuilder, cooldown.