Skip to main content

Type alias: PaginatedMessageActionMentionableMenu

PaginatedMessageActionMentionableMenu: PaginatedMessageActionRun & MentionableSelectMenuComponentData & object

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

Example

const MentionableMenu: PaginatedMessageActionMentionableMenu = {
customId: 'CustomMentionableSelectMenu',
type: ComponentType.MentionableSelect,
run: ({ interaction }) => {
if (interaction.isMentionableSelectMenu()) {
console.log(interaction.values[0])
}
}
}

Type declaration

options?

optional options: never

Source

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