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])
}
}
}