Skip to main content

Type alias: PaginatedMessageActionButton

PaginatedMessageActionButton: InteractionButtonComponentData & PaginatedMessageActionRun

To utilize buttons you can pass an object with the structure of PaginatedMessageActionButton to PaginatedMessage actions.

Example

const StopAction: PaginatedMessageActionButton = {
customId: 'CustomStopAction',
emoji: '⏹️',
run: ({ collector }) => {
collector.stop();
}
}

Source

projects/utilities/packages/discord.js-utilities/src/lib/PaginatedMessages/PaginatedMessageTypes.ts:79