mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-02 22:16:13 +00:00
fix using name as description for translated command
This commit is contained in:
1 parent
e9d3d7520f
commit
76d8e9467a
1 file changed
+2
-2
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user