#Slash Commands
15 messages · Page 1 of 1 (latest)
const data = new SlashCommandBuilder()
.setName('set')
.setDescription('Seta o status do seu dino.')
.addStringOption(option =>
option.setName(':Health: Health')
.setDescription('Define o HP do seu dino.'));
.addStringOption(option =>
option.setName(':Stamina: Stamina')
.setDescription('Define a Stamina do seu dino.'));
.addStringOption(option =>
option.setName(':Melee: Melee')
.setDescription('Define o Melee do seu dino.'));
for example
Health : 0
i want to !set Health 10 and make Health : 10
how can i proceed
im new to coding in js btw
Just curious, if these options are to return a number why don’t you use the integer option?
I don’t really understand your question, if you want to set the Health option to 10 you resolve the option.
interaction.options.getString('name_here')
Then add it to whatever else
the options are health , stamina and melee , for example , you go to macdonalds and want a bigmac , and then after choosing the bigmac u choose the quantity of bigmacs u want
Okay, I still don’t really understand but so sent how you get the value for your string(s)
thats what i gotta know , how can i make a 2nd option for the command , so that the guy can use !set Health and the ammount he wants
That’s up to you to decide
i thought more about it and i think i have an idea of what i should do