Home > OS >  Multiple select values in SelectMenu | DJS
Multiple select values in SelectMenu | DJS

Time:06-23

I would like to be able to select several values, each of which gives a role.

Example:

  • If I select the value "member", then the SelectMenu gives the role "Member"
  • If I select the value "member" and "logs", then the SelectMenu gives the roles "Member" and "logs"

With my current code,

  • the SelectMenu gives (or removes) only one role even if I select several.
  • The SelectMenu only gives (or removes) the role linked to the first value I select.

My MessageSelectMenu() :

        const notifications = new MessageActionRow()
        .addComponents(
            new MessageSelectMenu()
            .setCustomId('notifications-select')
            .setPlaceholder('           
  • Related