Skip to main content

Function: isMessageButtonInteractionData()

isMessageButtonInteractionData(interaction: ActionRowComponentOptions): interaction is ButtonComponentData

Checks if the given interaction is a button interaction.

Parameters

ParameterTypeDescription
interactionActionRowComponentOptionsThe interaction to check.

Returns

interaction is ButtonComponentData

True if the interaction is a button interaction, false otherwise.

Defined in

projects/utilities/packages/discord.js-utilities/src/lib/PaginatedMessages/utils.ts:63