Skip to main content

Variable: Selects

const Selects: object;

Select menu component IDs used in interactive messages.

Each select menu ID is prefixed with the namespace to ensure uniqueness across all plugins and prevent conflicts with other components.

Type declaration

AssigneeDiscordUser

readonly AssigneeDiscordUser: object;

User select menu for choosing a Discord user to map to a Jira assignee.

Used in the setup command to allow administrators to select which Discord user should be mentioned when a Jira assignee appears in roadmap cards.

AssigneeDiscordUser.id

readonly id: string;

AssigneeJiraName

readonly AssigneeJiraName: object;

String select menu for choosing a Jira assignee name to map.

Used in the setup command to allow administrators to select which Jira assignee name they want to map to a Discord user. Populated with known Jira assignee names from synced cards.

AssigneeJiraName.id

readonly id: string;

AuthorizedCreatorRoles

readonly AuthorizedCreatorRoles: object;

Role select menu for choosing which roles can create roadmap cards.

Used in the setup command to allow administrators to grant card creation permissions to specific roles beyond just administrators. Users with any of the selected roles will be able to use the /roadmap add command.

AuthorizedCreatorRoles.id

readonly id: string;

ColumnMappingColumn

readonly ColumnMappingColumn: object;

String select menu for choosing a column to map a status to.

Used in the setup command to allow administrators to select which column a provider status should map to, or select "Track Only" to map to null.

ColumnMappingColumn.id

readonly id: string;

ColumnMappingStatus

readonly ColumnMappingStatus: object;

String select menu for choosing a provider status name to map.

Used in the setup command to allow administrators to select which provider status they want to map to a column. Populated with known status names from synced cards.

ColumnMappingStatus.id

readonly id: string;

Example

import { RoleSelectMenuBuilder } from 'discord.js';
import { Selects } from './constants.js';

// Create a role select menu
const select = new RoleSelectMenuBuilder()
.setCustomId(Selects.AuthorizedCreatorRoles.id)
.setPlaceholder('Select roles')
.setMinValues(0)
.setMaxValues(10);