fix using name as description for translated command

This commit is contained in:
Marius Begby committed 2023-12-17 21:39:45 +01:00
1 parent e9d3d7520f
commit 76d8e9467a
1 file changed
+2 -2
+2 -2
View File
@@ -42,7 +42,7 @@ export function useUserTranslator(interaction: BaseInteraction) {
export const DISCORD_LOCALES = Object.values(Locale);
type CommandMetadata = {
export type CommandMetadata = {
name?: string;
description?: string;
options?: Record<
@@ -79,7 +79,7 @@ export function localizeCommand(command: Omit<SlashCommandBuilder, 'addSubcomman
jsonCommand.name_localizations[locale] = localeData.name;
}
if (localeData.description) {
jsonCommand.description_localizations[locale] = localeData.name;
jsonCommand.description_localizations[locale] = localeData.description;
}
}