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