Get the options as array from interactions.options

Hello, when i sends the interactions.options to the console i get
2|Krautz | CommandInteractionOptionResolver {
2|Krautz | _group: null,
2|Krautz | _subcommand: 'gelagert',
2|Krautz | _hoistedOptions: [
2|Krautz | { name: 'diamant', type: 4, value: 1 },
2|Krautz | { name: 'kürbis', type: 4, value: 12 },
2|Krautz | { name: 'ananas', type: 4, value: 123 }
2|Krautz | ]
2|Krautz | }
2|Krautz | CommandInteractionOptionResolver {
2|Krautz | _group: null,
2|Krautz | _subcommand: 'gelagert',
2|Krautz | _hoistedOptions: [
2|Krautz | { name: 'diamant', type: 4, value: 1 },
2|Krautz | { name: 'kürbis', type: 4, value: 12 },
2|Krautz | { name: 'ananas', type: 4, value: 123 }
2|Krautz | ]
2|Krautz | }
How can i only get the _joistedOptions as output?
3 Replies
d.js docs
d.js docs3y ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
조아오
조아오3y ago
Use the helpers
d.js docs
d.js docs3y ago
class CommandInteractionOptionResolver A resolver for command interaction guide Interactions: Replying to slash commands - Parsing options read moreproperty CommandInteractionOptionResolver#data The interaction options array.
Want results from more Discord servers?
Add your server