description_localizations official for desktop ?

I have the same example as the discord api and it's not working, it's only for android ?
3 Replies
d.js docs
d.js docs3y ago
• 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.
Jaworek
Jaworek3y ago
nah its working in desktop #discord-dev-news
LeStyloBleu
LeStyloBleuOP3y ago
In #djs-help-v14 i show u my code and u can see, nothing is wrong The description_localizations options are good
{
name: 'aa',
type: 1,
description: 'test1',
description_localizations: { 'en-US': 'test2' },
options: [],
dm_permission: true
}
{
name: 'aa',
type: 1,
description: 'test1',
description_localizations: { 'en-US': 'test2' },
options: [],
dm_permission: true
}
No one know ? What more is needed ? Deployment =
const { REST } = require('@discordjs/rest');
const { Routes } = require('discord.js');

const rest = new REST({ version: '10' }).setToken(this.client.config.token);

const commands = this.client.slashCommands.map(command => command.applicationCommandBody);
await rest.put(Routes.applicationGuildCommands(this.client.user.id, ''), { body: commands });
const { REST } = require('@discordjs/rest');
const { Routes } = require('discord.js');

const rest = new REST({ version: '10' }).setToken(this.client.config.token);

const commands = this.client.slashCommands.map(command => command.applicationCommandBody);
await rest.put(Routes.applicationGuildCommands(this.client.user.id, ''), { body: commands });
applicationCommandBody =
{
name: 'aa',
type: 1,
description: 'test1',
description_localizations: { 'en-US': 'test2' },
options: [],
dm_permission: true
}
{
name: 'aa',
type: 1,
description: 'test1',
description_localizations: { 'en-US': 'test2' },
options: [],
dm_permission: true
}
command = (type is by default (message))
const BaseCommand = require("../../Base/Command");

module.exports = class Aa extends BaseCommand {
constructor (client) {
super(client, {
filename: __filename,
description: 'test1',
description_localizations: {
'en-US': `test2`
},
});
}

async run (client, interaction) {
}
}
const BaseCommand = require("../../Base/Command");

module.exports = class Aa extends BaseCommand {
constructor (client) {
super(client, {
filename: __filename,
description: 'test1',
description_localizations: {
'en-US': `test2`
},
});
}

async run (client, interaction) {
}
}
that ? For multiple languages I'm using description_localizations with map for using multiple language and name_localizations is for what exactly ? It's the same map as my example ?
name_localizations: {
'en-US': `hello`
},
name_localizations: {
'en-US': `hello`
},
Ok i'm testing it's not working too :/
Want results from more Discord servers?
Add your server