#SlashCommandBuilder - Error at .addChoices([ ...])

1 messages · Page 1 of 1 (latest)

frail oar
  1. djs v14
  2. node v16
 data: new SlashCommandBuilder()
        .setName("loop")
        .setDescription("Set loop mode")
        .addIntegerOption((option) => option
            .setName("mode")
            .setDescription("Loot type (choose no 1-4)")
            .addChoices([
                ["Off", "1"],
                ["Track", "2"],
                ["Queue", "3"],
                ["AutoPlay", "4"],
            ])),

I was following EXample here : https://github.com/discordjs/builders/blob/main/docs/examples/Slash Command Builders.md
I don't think I followed wrong 🤔
help plz...........