How to use .setChoices/.addChoices. SlashCommandBuilder

context i am making a embed command,

i am receiving this error for each of my options

ValidationError: Expected the value to be an object, but received string instead
          at _ObjectValidator.handle (/Users/rileyrager/WebstormProjects/CelestialBot/node_modules/@sapphire/shapeshift/dist/cjs/index.cjs:2070:9)
          at _ObjectValidator.run (/Users/rileyrager/WebstormProjects/CelestialBot/node_modules/@sapphire/shapeshift/dist/cjs/index.cjs:958:23)
          at _ArrayValidator.handle (/Users/rileyrager/WebstormProjects/CelestialBot/node_modules/@sapphire/shapeshift/dist/cjs/index.cjs:1248:37)
          at _ArrayValidator.parse (/Users/rileyrager/WebstormProjects/CelestialBot/node_modules/@sapphire/shapeshift/dist/cjs/index.cjs:972:90)
          at MixedClass.addChoices (/Users/rileyrager/WebstormProjects/CelestialBot/node_modules/@discordjs/builders/dist/index.js:2118:22)
          at /Users/rileyrager/WebstormProjects/CelestialBot/commands/utility/embed.js:10:14
          at MixedClass._sharedAddOptionMethod (/Users/rileyrager/WebstormProjects/CelestialBot/node_modules/@discordjs/builders/dist/index.js:2439:50)
          at MixedClass.addStringOption (/Users/rileyrager/WebstormProjects/CelestialBot/node_modules/@discordjs/builders/dist/index.js:2411:17)
          at Object.<anonymous> (/Users/rileyrager/WebstormProjects/CelestialBot/commands/utility/embed.js:7:10)
          at Module._compile (node:internal/modules/cjs/loader:1739:14) {
        validator: 's.object(T)',
        given: 'Random'


note this error is happening with each of my options
Was this page helpful?