Skip to content

Is it possible to populate the select options of a slash command from an api response? #1067

Answered by almostSouji
grantspilsbury asked this question in Q&A
Discussion options

You must be logged in to vote

If you can narrow it down to <= 25 to choose from you can respond to the initial slash command with a message including select components https://discordjs.guide/interactions/select-menus.html. If you can rapidly request new data without getting issues with rate limiting, you can also use the autocomplete approach mentioned in #1066 (the same caveats apply, of course)

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@grantspilsbury
Comment options

@almostSouji
Comment options

@grantspilsbury
Comment options

Answer selected by almostSouji
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #1065 on March 16, 2022 09:18.