Localizations (stupid)
For it works this way when there would be another even simpler way ?
Now:
After:
Now:
const data = new SlashCommandBuilder()
.setName('dog')
.setNameLocalizations({
pl: 'pies',
de: 'hund',
})
.setDescription('Get a cute picture of a dog!')
.setDescriptionLocalizations({
pl: 'Słodkie zdjęcie pieska!',
de: 'Poste ein niedliches Hundebild!',
})const data = new SlashCommandBuilder()
.setName('dog')
.setNameLocalizations({
pl: 'pies',
de: 'hund',
})
.setDescription('Get a cute picture of a dog!')
.setDescriptionLocalizations({
pl: 'Słodkie zdjęcie pieska!',
de: 'Poste ein niedliches Hundebild!',
})After:
const data = new SlashCommandBuilder()
.setNameLocalizations({
pl: 'pies', default: true,
de: 'hund',
en: 'dog',
})
.setDescriptionLocalizations({
pl: 'Słodkie zdjęcie pieska!', default: true,
de: 'Poste ein niedliches Hundebild!',
de: 'Get a cute picture of a dog!',
})const data = new SlashCommandBuilder()
.setNameLocalizations({
pl: 'pies', default: true,
de: 'hund',
en: 'dog',
})
.setDescriptionLocalizations({
pl: 'Słodkie zdjęcie pieska!', default: true,
de: 'Poste ein niedliches Hundebild!',
de: 'Get a cute picture of a dog!',
})
