lowercase name localization

This commit is contained in:
Mylloon 2022-07-24 15:42:40 +02:00
parent b085539b48
commit 62e61df3d0
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -9,7 +9,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`));
},