Skip to main content

Type alias: PaginatedMessageActionRoleMenu

PaginatedMessageActionRoleMenu: PaginatedMessageActionRun & RoleSelectMenuComponentData & object

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

Example

const RoleMenu: PaginatedMessageActionRoleMenu = {
customId: 'CustomRoleSelectMenu',
type: ComponentType.RoleSelect,
run: ({ interaction }) => {
if (interaction.isRoleSelectMenu()) {
console.log(interaction.values[0])
}
}
}

Type declaration

options?

optional options: never

Source

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