✨ only 1 role can be selected with dropdown (configurable)
This commit is contained in:
parent
1cfc4a8fa8
commit
8e38c629af
|
|
@ -42,7 +42,7 @@ export class CreateRolePickerCommand extends Command {
|
|||
const row = new MessageActionRow().addComponents(
|
||||
new MessageSelectMenu()
|
||||
.setMinValues(0)
|
||||
.setMaxValues(role.length)
|
||||
.setMaxValues(rolePicker.multi_select ? role.length : 1)
|
||||
.setCustomId(`interaction-poc-${rolePicker.name}`)
|
||||
.setPlaceholder(rolePicker.placeholder)
|
||||
.addOptions(
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ interface RolePicker {
|
|||
name: string,
|
||||
message: string,
|
||||
placeholder: string,
|
||||
multi_select: boolean
|
||||
roles: Role[]
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue