Skip to main content

Function: actionIsButtonOrMenu()

actionIsButtonOrMenu(action: PaginatedMessageAction): action is PaginatedMessageActionButton | PaginatedMessageActionStringMenu | PaginatedMessageActionUserMenu | PaginatedMessageActionRoleMenu | PaginatedMessageActionMentionableMenu | PaginatedMessageActionChannelMenu

Checks if a PaginatedMessageAction is a button or menu.

Parameters

ParameterTypeDescription
actionPaginatedMessageActionThe PaginatedMessageAction to check.

Returns

action is PaginatedMessageActionButton | PaginatedMessageActionStringMenu | PaginatedMessageActionUserMenu | PaginatedMessageActionRoleMenu | PaginatedMessageActionMentionableMenu | PaginatedMessageActionChannelMenu

true if the action is a button or menu, false otherwise.

Defined in

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