diff --git a/src/handlers/CommandRegistryHandler.ts b/src/handlers/CommandRegistryHandler.ts index 280aac0..a2bf1cc 100644 --- a/src/handlers/CommandRegistryHandler.ts +++ b/src/handlers/CommandRegistryHandler.ts @@ -141,7 +141,7 @@ export class CommandRegistry { */ private isDifferent(discord: ApplicationCommand, command: Command): string | null { if (!_.isEqual(discord.nameLocalizations, command.nameLocalizations ?? null)) return "nameLocalizations"; - if (!_.isEqual(discord.descriptionLocalizations, command.descriptions ?? null)) return "descriptionLocalizations"; + if (!_.isEqual(discord.descriptionLocalizations ?? {}, command.descriptions)) return "descriptionLocalizations"; if (discord.description !== command.description) return "description"; if (discord.dmPermission !== command.permissions.dm) return "dmPermission"; diff --git a/src/structures/Command.ts b/src/structures/Command.ts index d0c354f..b3644e4 100644 --- a/src/structures/Command.ts +++ b/src/structures/Command.ts @@ -88,7 +88,7 @@ export interface CommandOptions { nameLocalizations?: Partial>; /** The default description of the command. */ description: string; - /** A small description about the command. The English translation will also be used as default description. */ + /** Localized version of description. */ descriptions?: Partial>; /** Options users have to pass through before sending the command * @default []