Skip to main content

Type Alias: PaginatedMessageActionUserMenu

PaginatedMessageActionUserMenu: PaginatedMessageActionRun & UserSelectMenuComponentData & object

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

Type declaration

options?

optional options: never

Example

const UserMenu: PaginatedMessageActionUserMenu = {
customId: 'CustomUserSelectMenu',
type: ComponentType.UserSelect,
run: ({ interaction }) => {
if (interaction.isChannelSelectMenu()) {
console.log(interaction.values[0])
}
}
}

Defined in

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