#how to change one option type after a specific word is chosen in command
16 messages · Page 1 of 1 (latest)
• 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.
umm its just a question
13.5.1 discord.js
commands?.create({
name: "edit",
description: "Edit a listing",
options: [
{
name: "id",
description: "shops ID",
required: true,
type: Discord.Constants.ApplicationCommandOptionTypes.NUMBER
},
{
name: "scope",
description: "shops ID",
required: true,
type: Discord.Constants.ApplicationCommandOptionTypes.STRING
},
{
name: "data",
description: "Value",
required: true,
type: Discord.Constants.ApplicationCommandOptionTypes.STRING
},
]
})```
and i'd like to change the "data" option type based on what's provided in the "scope" option
the best you can do is make subcommands with different options
no, you are using number and string options, the guide should have a section on command structuring
the discord.js guide 
it's not bad, but slash commands do provide more options which you can use here
i tried the SlashCommandBuilder() function that was provided there but it isnt recognized
so i switched to this
the guide uses builders which you have to manually install in v13, they are included in v14. there is a v13 version of the guide under http://v13.discordjs.guide