#Unselecting Selected Option From SelectMenu In Discord.Js V14.over

1 messages · Page 1 of 1 (latest)

topaz garden
#

Making thread

rough gale
#

You know/can find out what’s the default value. If you get an empty array you know what‘s selected

topaz garden
#
        //interaction.member.roles.cache.has(interaction.values) ? interaction.member.roles.remove(interaction.values) : interaction.member.roles.add(interaction.values)```
topaz garden
rough gale
#

And use that in your ternary

topaz garden
#

How about solution for multi Default?

#

I mean

#

Imagine there is 4 options

Option1 default

Option2 default

Option3

Option4 default

#

If user unselecting option2

#

But not option 1 and option 4

rough gale
topaz garden
#

How to do for multi select unselectable?

topaz garden
# topaz garden

If this isn't empty array, the whole process gonna be easily solved

#

rough gale
#

It really shouldn’t… sounds like a case for ddevs server #useful-servers