Please describe the problem you are having in as much detail as possible:
According to the documentation, there should be a way to create a number option on slash commands via the SlashCommandBuilder() (see here and here). However, when attempting to use .addNumberOption, this error is thrown:
.addNumberOption(option =>
^
TypeError: (intermediate value).setName(...).setDescription(...).addNumberOption is not a function
Upon going into the files for discord.js, there does not seem to be any support for number options within @discordjs/builders/dist/interactions/slashCommands/options.
Include a reproducible code sample here, if possible:
Please describe the problem you are having in as much detail as possible: According to the documentation, there should be a way to create a number option on slash commands via the SlashCommandBuilder() (see here and here). However, when attempting to use
.addNumberOption
, this error is thrown:Upon going into the files for discord.js, there does not seem to be any support for number options within
@discordjs/builders/dist/interactions/slashCommands/options
.Include a reproducible code sample here, if possible:
Further details:
Relevant client options: