[Registering slash commands]
for now I register slash commands by the official guide from https://discordjs.guide/creating-your-bot/command-deployment.html#command-registration
and once I hit the rate limit per day(100 times), the whole rest day I couldn't test my new commands on that bot. I read discord.js website and found that
put()
refreshes all the commands every time. As now I have at least 10 commands and some times I'll adjust something like the options and .put()
many times.
So, Is there any way to simply register only one command?
I can't find other functions to do registering
and I also found client.application.commands.create(), but if not necessary I don't want to do that (though it wont take much time, perhaps)discord.js Guide
Imagine a guide... that explores the many possibilities for your discord.js bot.
14 Replies
• 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.do you deploy your commands every time you start your bot?
no
show your deploy file
i deploy by node a single file
why do you have 3 functions to regster
or i should only register the needed commands when testing?
that's for I have different command for different access
just register globally? Doesnt matter how many commands you deploy, its a single request but you make 3 requests every time
nah the three register scopes handle different commands
but they are 3 requests
🤔
as the website said It's 100 commands per day
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
kk
i saw that bruh
anyway
idk
does this look good?