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 docs3y 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
@flexyzOP3y ago
node 16.17.1 djs 13.10.3
조아오
조아오3y ago
Could you console log the commands array? The one that you are sending to discord
@flexyz
@flexyzOP3y ago
@jpbm135
조아오
조아오3y ago
What registered means in this context? That the command was added to the cache Or that it deployed to discord?
@flexyz
@flexyzOP3y ago
deployed to discord
조아오
조아오3y ago
Can you show the deploy code ?
@flexyz
@flexyzOP3y ago
1 second i am opening laptop
조아오
조아오3y ago
Okie
@flexyz
@flexyzOP3y ago
조아오
조아오3y ago
Yep, this isnt registering to discord This is:
d.js docs
d.js docs3y ago
guide Interactions: Registering slash commands read more
조아오
조아오3y ago
You need to deploy your commands again to discord using smt like this script
@flexyz
@flexyzOP3y ago
wdym
조아오
조아오3y 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
@flexyzOP3y ago
also i am using this
조아오
조아오3y ago
This is what I mean You need to run this script
@flexyz
@flexyzOP3y ago
but its running
@flexyz
@flexyzOP3y ago
@flexyz
@flexyzOP3y ago
@jpbm135
조아오
조아오3y ago
Could you console log the commands?
@flexyz
@flexyzOP3y ago
i will try it on home i am not at home now
조아오
조아오3y ago
Okk
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
@flexyz
@flexyzOP3y ago
where i should use it than
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
조아오
조아오3y ago
Yeah, there's also that
@flexyz
@flexyzOP3y 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 User3y ago
Message Not Public
Sign In & Join Server To View
@flexyz
@flexyzOP3y ago
oh okay
@flexyz
@flexyzOP3y ago
thinkingLol
@flexyz
@flexyzOP3y ago
i didnt changed anything im so stupid
@flexyz
@flexyzOP3y ago
@flexyz
@flexyzOP3y ago
it works now thanks
Want results from more Discord servers?
Add your server