Type Alias: PaginatedMessageActionChannelMenu
PaginatedMessageActionChannelMenu:
PaginatedMessageActionRun
&ChannelSelectMenuComponentData
&object
To utilize Channel Select Menus you can pass an object with the structure of PaginatedMessageActionChannelMenu to PaginatedMessage actions.
Type declaration
options?
optional
options:never
Example
const ChannelMenu: PaginatedMessageActionChannelMenu = {
customId: 'CustomChannelSelectMenu',
type: ComponentType.ChannelSelect,
channelTypes: [ChannelType.GuildText],
run: ({ interaction }) => {
if (interaction.isChannelSelectMenu()) {
console.log(interaction.values[0])
}
}
}