Skip to main content

Function: isButtonComponentBuilder()

isButtonComponentBuilder(component: MessageActionRowComponentBuilder): component is ButtonBuilder

Checks if the given component is a button builder.

Parameters

ParameterTypeDescription
componentMessageActionRowComponentBuilderThe component to check.

Returns

component is ButtonBuilder

True if the component is a button builder, false otherwise.

Defined in

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