Skip to content

EmbedAction.onClick method

EmbedAction › onClick

Unofficial

Register a click handler for the action.

Signature:

onClick(callback: () => unknown): this

Parameters:

ParameterTypeDescription
callback() => unknownHandler invoked when the action is clicked.

Returns: thisThe action, for chaining.