use newer syntax

This commit is contained in:
Mylloon 2022-07-24 15:49:59 +02:00
parent 42ff309b75
commit 45bfc899a4
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -68,7 +68,7 @@ export default {
return new SlashCommandBuilder()
.setName(filename.toLowerCase())
.setDescription(client.locales.get(client.config.default_lang)?.get(`c_${filename}_desc`) ?? '')
.setNameLocalizations(getLocalizations(client, `c_${filename}_name`))
.setNameLocalizations(getLocalizations(client, `c_${filename}_name`, true))
.setDescriptionLocalizations(getLocalizations(client, `c_${filename}_desc`));
},