Lazuee
Lazuee
Explore posts from servers
DIAdiscord.js - Imagine an app
Created by Lazuee on 8/7/2023 in #djs-questions
SlashCommandBuilder#addStringOption: set(Min/Max)Length is unnecessary when using setChoices
.addStringOption((options) =>
options
.setName("say")
.setDescription("greetings?")
.setMinLength(1)
.setMaxLength(100)
.setChoices(
{
name: "choice 1",
value: "hello",
},
{
name: "choice 2",
value: "hi",
},
{
name: "choice 3",
value: "hallo",
},
)
.setRequired(true),
);
.addStringOption((options) =>
options
.setName("say")
.setDescription("greetings?")
.setMinLength(1)
.setMaxLength(100)
.setChoices(
{
name: "choice 1",
value: "hello",
},
{
name: "choice 2",
value: "hi",
},
{
name: "choice 3",
value: "hallo",
},
)
.setRequired(true),
);
6 replies
DIAdiscord.js - Imagine an app
Created by Lazuee on 8/6/2023 in #djs-questions
Type 'X' is not comparable to type 'APIApplicationCommandOption'.
6 replies
CVCode Vanguard
Created by Lazuee on 12/17/2022 in #code-help
Welcome to the Code Help forums
We're here to help you with any coding issues you might have. Before you post, please read and follow the guidelines and rules listed above. This will help us get you the best help possible and make sure everyone has a positive experience. If you have any questions about the guidelines or rules, please let us know. We're happy to help! Thanks for being part of our community and we look forward to assisting you with your coding needs!
1 replies