Autocomplete not using value given but instead name

This is the code
await interaction.respond([
{ name: 'Option 1', value: '1' },
{ name: 'Option 2', value: '2' },
]
)
await interaction.respond([
{ name: 'Option 1', value: '1' },
{ name: 'Option 2', value: '2' },
]
)
No description
6 Replies
d.js toolkit
d.js toolkit4mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by OP
GuiTheDev
GuiTheDevOP4mo ago
my man forget it im dumb
NyR
NyR4mo ago
...
GuiTheDev
GuiTheDevOP4mo ago
it doesnt show the value when you click it still shows the name 😭 i have been sitting here for like an hour and its that
NyR
NyR4mo ago
The value is for when you recieve the interaction (with the option) It'll display the name on the client
GuiTheDev
GuiTheDevOP4mo ago
yes, im angry at myself for just not thinking lol, i solved it in my head in the moment i pressed post Lol gonna close this, thanks for trying to help anyway :)
Want results from more Discord servers?
Add your server