[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
d.js toolkit
d.js toolkit2y 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.
treble/luna
treble/luna2y ago
do you deploy your commands every time you start your bot?
MEtooHARD
MEtooHARDOP2y ago
no
treble/luna
treble/luna2y ago
show your deploy file
MEtooHARD
MEtooHARDOP2y ago
i deploy by node a single file
treble/luna
treble/luna2y ago
why do you have 3 functions to regster
MEtooHARD
MEtooHARDOP2y ago
or i should only register the needed commands when testing? that's for I have different command for different access
treble/luna
treble/luna2y ago
just register globally? Doesnt matter how many commands you deploy, its a single request but you make 3 requests every time
MEtooHARD
MEtooHARDOP2y ago
nah the three register scopes handle different commands
treble/luna
treble/luna2y ago
but they are 3 requests
MEtooHARD
MEtooHARDOP2y ago
🤔 as the website said It's 100 commands per day
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
MEtooHARD
MEtooHARDOP2y ago
kk i saw that bruh anyway idk does this look good?
Want results from more Discord servers?
Add your server