Skip to main content

Type alias: PaginatedMessageActionStringMenu

PaginatedMessageActionStringMenu: PaginatedMessageActionRun & StringSelectMenuComponentData

To utilize String Select Menus you can pass an object with the structure of PaginatedMessageActionStringMenu to PaginatedMessage actions.

Example

const StringMenu: PaginatedMessageActionStringMenu = {
customId: 'CustomStringSelectMenu',
type: ComponentType.StringSelect,
run: ({ handler, interaction }) => interaction.isStringSelectMenu() && (handler.index = parseInt(interaction.values[0], 10))
}

Source

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