commands.ComponentHandler

ComponentHandler

type: (interaction: Interaction, params: string[]) => Promise<unknown>

Handles a button click, select menu choice, or modal submission. params holds the custom ID segments after the registered ID; for “poll:vote” receiving "poll:vote:12:yes" it is ["12", "yes"].