Parameter list

Hello, i have a command who take a string on parameter and i want user can just on a list of suggestion fill this string
{
name: "champion",
description: "Name of the desired champion",
type: 3,
require: true,
// like this :
options = ["A", "B", "C"]
},
{
name: "champion",
description: "Name of the desired champion",
type: 3,
require: true,
// like this :
options = ["A", "B", "C"]
},
So when he write the commande, he can coose the parameter between A, B and C and only this
3 Replies
d.js toolkit
d.js toolkit7mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by OP
d.js docs
d.js docs7mo ago
guide Slash Commands: Advanced command creation - Choices read more
Kuzimu
Kuzimu7mo ago
It was quite simple 😅 , thanks it works