I have problem with adding new option to my command

I think i should open this post because anyone can't find any solution. I added a new StringOption to my setwelcomechannel command i deployed it a lot of times but it still showing only ChannelOption not showing StringOption
35 Replies
d.js docs
d.js docs2y ago
• 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.
@flexyz
@flexyz2y ago
node 16.17.1 djs 13.10.3
조아오
조아오2y ago
Could you console log the commands array? The one that you are sending to discord
@flexyz
@flexyz2y ago
@jpbm135
조아오
조아오2y ago
What registered means in this context? That the command was added to the cache Or that it deployed to discord?
@flexyz
@flexyz2y ago
deployed to discord
조아오
조아오2y ago
Can you show the deploy code ?
@flexyz
@flexyz2y ago
1 second i am opening laptop
조아오
조아오2y ago
Okie
@flexyz
@flexyz2y ago
조아오
조아오2y ago
Yep, this isnt registering to discord This is:
d.js docs
d.js docs2y ago
guide Interactions: Registering slash commands read more
조아오
조아오2y ago
You need to deploy your commands again to discord using smt like this script
@flexyz
@flexyz2y ago
wdym
조아오
조아오2y ago
Read the thing I sent you Bc this is registering commands to your bot cache You need to tell discord itself, hey I changed this command, deploy it again to all users
@flexyz
@flexyz2y ago
also i am using this
조아오
조아오2y ago
This is what I mean You need to run this script
@flexyz
@flexyz2y ago
but its running
@flexyz
@flexyz2y ago
@flexyz
@flexyz2y ago
@jpbm135
조아오
조아오2y ago
Could you console log the commands?
@flexyz
@flexyz2y ago
i will try it on home i am not at home now
조아오
조아오2y ago
Okk
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
@flexyz
@flexyz2y ago
where i should use it than
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
조아오
조아오2y ago
Yeah, there's also that
@flexyz
@flexyz2y ago
i looked deploy-commands.js on site but i didnt understand how to deploy commands it will work after i create it or am i should do something for deploying commands
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
@flexyz
@flexyz2y ago
oh okay
@flexyz
@flexyz2y ago
thinkingLol
@flexyz
@flexyz2y ago
i didnt changed anything im so stupid
@flexyz
@flexyz2y ago
@flexyz
@flexyz2y ago
it works now thanks
Want results from more Discord servers?
Add your server
More Posts