#Discord Autocomplete

9 messages · Page 1 of 1 (latest)

turbid basin
#

Is it possible to return an object from autocomplete?

Discord.js version: v14.2.0
Node: v16.15.1

harsh ospreyBOT
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

fading narwhal
#

I don't quite understand the question

#

Return what to where?

turbid basin
#

Like this

<AutocompleteInteraction>.respond([{ name: “Test”, value: {} }])
fading narwhal
#

Nope, values are strings

#

You can stringify an object though

turbid basin