use localization

This commit is contained in:
Mylloon 2022-07-21 17:09:34 +02:00
parent 4c42fa101b
commit a819ed0ea8
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -4,8 +4,8 @@ import { getLocale } from '../../utils/locales';
export default {
data: (client: Client) => new SlashCommandBuilder()
.setNameLocalizations(getLocale(client, 'ping_name'))
.setDescriptionLocalizations(getLocale(client, 'ping_desc')),
.setNameLocalizations(getLocale(client, 'c_ping_name'))
.setDescriptionLocalizations(getLocale(client, 'c_ping_desc')),
interaction: async (interaction: CommandInteraction, client: Client) => {
const loc = client.locales.get(interaction.locale) ?? client.locales.get(client.config.default_lang);