#description_localizations official for desktop ?
20 messages · Page 1 of 1 (latest)
• 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.
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
}
No one know ?
You didn’t show your code or much relevant information in here, so hard to help…
What more is needed ?
Your actual code. Your deployment, etc.
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 });
applicationCommandBody =
{
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) {
}
}
that ?
Why don’t you also have name_localizations? I‘m not entirely sure if they work independently…
For multiple languages
What part of my message is that a reply to? Because it doesn’t seem to be to any part of it
I'm using description_localizations with map for using multiple language and name_localizations is for what exactly ?
For the same but with name instead of description
So /hallo /hello /bonjour etc.
It's the same map as my example ?
name_localizations: {
'en-US': `hello`
},
Pretty much, yeah
Ok i'm testing