Interfaceseedcordv0.15.0
CooldownOptions
Options for CooldownCooldown. perper sets the bucket the window applies to and limitlimit the uses allowed per window. messagemessage rewords the refusal and noticenotice replaces it, both receiving the epoch ms the key frees up so the refusal can show the retry time.
interface CooldownOptionsinterface CooldownOptions- optional
The bucket the cooldown window applies to. 'user' scopes by user ID, 'guild' scopes by guild ID (falls back to global if no guild), and 'channel' scopes by channel ID (falls back to global if no channel). If your handler can run in DMs and you want a per-user cooldown, use 'user' and it won't charge a shared global bucket for users without IDs.
per: "user" | "guild" | "channel";per: "user" | "guild" | "channel";Default:'user''user'