Added new options to slash command; not being reflected on discord

registry.registerChatInputCommand((builder) =>
builder //
.setName(this.name)
.setDescription(this.description)
.addNumberOption(v => v.setName('value').setDescription('The value of the lerp').setRequired(true).setMaxValue(1).setMinValue(0))
.addBooleanOption(it => it.setName('iterate').setDescription('Iterate the values?').setRequired(true))
, { idHints: ['1066878334149070879'] })
registry.registerChatInputCommand((builder) =>
builder //
.setName(this.name)
.setDescription(this.description)
.addNumberOption(v => v.setName('value').setDescription('The value of the lerp').setRequired(true).setMaxValue(1).setMinValue(0))
.addBooleanOption(it => it.setName('iterate').setDescription('Iterate the values?').setRequired(true))
, { idHints: ['1066878334149070879'] })
Solution:
Found out why, error with compiling made there be duplicate files: the old one and the updated one
Jump to solution
2 Replies
Spinel
Spinel2y ago
When asking for help, make sure to provide as much detail as possible. What have you tried so far? Do you have stacktraces that you can show us? What are you trying to achieve? Try to answer these questions and others, so we do not have to ask for them afterwards.
❯ For a good guide on how to ask questions, see the instructions that StackOverflow gives. You should try to always follow these guidelines. ❯ For an excellent video that shows how not to ask technical questions is this, watch this YouTube video by LiveOverflow. ❯ Asking technical questions (Clarkson)How to ask questions the smart way (Raymond)
Solution
.
.2y ago
Found out why, error with compiling made there be duplicate files: the old one and the updated one
Want results from more Discord servers?
Add your server