commands.ComponentConfig

interface ComponentConfig

Settings for a button, select menu, or modal handler.

Properties

Property

Type

Description

cooldown?

CommandCooldown

customId

string

The custom ID to handle, 1 to 100 characters. It matches a component whose custom ID is exactly this value, or starts with this value followed by : . Anything after that colon is split on : and passed to the handler as params .

filters?

CommandFilter[]

permissions?

CommandPermissions