What's wrong with this slash command?

export default class ChemInfoCommand extends BaseCommand {
  constructor() {
    super(
      new SlashCommandBuilder()
        .setName("cheminfo")
        .setDescription("Get information about a chemical")
        .addStringOption((option) =>
                    option
                        .setName("Name")
                        .setDescription("Name of chemical compound")
                        .setRequired(false),
                )
        .addStringOption((option) =>
            option
                .setName("Formula")
                .setDescription("Formula of chemical compound")
                .setRequired(false),
        )
        .setDMPermission(true),
    );
  }
Was this page helpful?