#description_localizations official for desktop ?

20 messages · Page 1 of 1 (latest)

urban oak
#

I have the same example as the discord api and it's not working, it's only for android ?

hollow lichenBOT
#

• 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.

honest aurora
#

nah its working in desktop

#

#discord-dev-news

urban oak
#

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
}
urban oak
#

No one know ?

somber sedge
#

You didn’t show your code or much relevant information in here, so hard to help…

somber sedge
#

Your actual code. Your deployment, etc.

urban oak
# somber sedge 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 ?

somber sedge
somber sedge
urban oak
somber sedge
#

So /hallo /hello /bonjour etc.

urban oak
urban oak
#

Ok i'm testing