#Can you use options and populate autocomplete based on the option chosen in a slash command?

1 messages · Page 1 of 1 (latest)

rugged pulsar
#

So here is my problem.

Lets say i have options Apple, banana, and Cucumber.

If the user chooses the option Apple, i want the autocomplete to use the data set related to apple.

If the user chooses the option banana, I want the autocomplete to use the data set related to banana and so on.

i do not have access to message content as apparently my use cases was not unique enough and I wanted to combine all three of my commands into one commands

i currently have a command for Apple, command for Banana, and a command for Cucumber.

Is having both in the same slash command possible with autocomplete being dynamic and pulling data sets based on the option the user picked?

Example: Since Apple was picked, i would want the autocomplete to to generate from a set maybe ["Granny Smith", "Green Apple"]

If i would have picked Banana i would want autocomplete to populate ["ripe", "not ripe" ]

worldly void
rugged pulsar
#

@worldly void thanks but how would i reference the option selected, in the autocomplete function?

worldly void
rugged pulsar
#

figured it out thanks!