error when deploying commands

i think the error is about subcommands and the only command i have with subcommands is this one:
  data: new SlashCommandBuilder()
    .setName('echo')
    .setDescription('Sends the message as the Bot')
    .addSubcommand(subcommand =>
      subcommand.setName('normal')
        .setDescription('Sends a normal message')
        .addStringOption(option =>
          option.setName('message')
            .setDescription('The message to send')
            .setRequired(true)
        )
    )
    .addSubcommand(subcommand =>
      subcommand.setName('embed')
        .setDescription('Sends an embed message')
        .addStringOption(option =>
          option.setName('description')
            .setDescription('The description of the embed')
            .setRequired(true)
        )
        .addStringOption(option =>
          option.setName('title')
            .setDescription('The title of the embed')
        )
        .addStringOption(option =>
          option.setName('timestamp')
            .setDescription('Should the embed have a timestamp?')
            .addChoices(
              { name: 'True', value: 'true' },
              { name: 'False', value: 'false' }
            )
        )
    )
    .addStringOption(option =>
      option.setName('replyornor')
        .setDescription('Should the message be sent as a command reply or separate message?')
        .addChoices(
          { name: 'Reply', value: 'The message will be sent as a reply to the command'},
          { name: 'Message', value: 'The message will be sent as a separate message'}
        )
    )
    .setIntegrationTypes([ApplicationIntegrationType.UserInstall])
    .setContexts([InteractionContextType.Guild, InteractionContextType.BotDM, InteractionContextType.PrivateChannel]),
Was this page helpful?