AutocompleteOption.NameLocalizations not works?

I am sending a response with
const option = {
name: "Hello World!",
nameLocalizations: {
"es-ES": "Hola Mundo!"
}
value: ""
}
const option = {
name: "Hello World!",
nameLocalizations: {
"es-ES": "Hola Mundo!"
}
value: ""
}
and the option always show the name and not the name localization (my discord is in es-ES) edit: I am using it in a subcommand
2 Replies
d.js toolkit
d.js toolkit6mo 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
espiroaka
espiroakaOP6mo ago
node version: v22.0.0 Yes but It is an empty value But why it dont throw an error? ```js await interaction.respond([ { name: "You can use a display name of other platform platform=displayname Platforms:", nameLocalizations: { "es-ES": "Puedes usar un nombre de otra plataforma plataforma=nombre Plataformas:", "es-419": "Puedes usar un nombre de otra plataforma plataforma=nombre` Plataformas:" }, value: "" }, { name: "xbl=displayName (xbox live)", nameLocalizations: { "es-ES": "xbl=nombre (xbox live)", "es-419": "xbl=nombre (xbox live)" }, value: "" }, { name: "psn=displayName (play station network)", nameLocalizations: { "es-ES": "psn=nombre (play station network)", "es-419": "psn=nombre (play station network)" }, value: "" }, { name: "steam=displayName (steam)", nameLocalizations: { "es-ES": "steam=nombre (steam)", "es-419": "steam=nombre (steam)" }, value: "" }, { name: "nsw=displayName (Nintendo)", nameLocalizations: { "es-ES": "nsw=nombre (Nintendo)", "es-419": "nsw=nombre (Nintendo)" }, value: "" } ]); ``` I know, but I ask why the name of the options is always the property name Okay thanks
Want results from more Discord servers?
Add your server