#Choice menu
1 messages · Page 1 of 1 (latest)
it looks like you're using an event, can you send the whole eventhandler
e.Id is the component's id, which is the select component's id
but what you're trying to do is (probably) comparing the option ids
and you can access selected option ids through e.Values
np :)
btw you should put another switch or an if there
to make sure you're handling the select component
use something like
if(e.Id != "yourSelectMenuID") return;
because e.Values is an array
You can select multiple items in a select component
thats why its an array
but if you specified it on the creation of it with min value 1 and max value 1, the array will have only one string in it
so you can use e.Values[0] to access to one and only string in it
You can specify the min and max options using the last 2 parameters in the DiscordSelectComponent constructor