#Sending deploy request

46 messages · Page 1 of 1 (latest)

frigid sapphire
#

✅ .env is read correctly

✅ Token, Client ID, and Guild ID are valid

✅ 44 commands are loaded correctly

✅ The REST client initiates the PUT request…

⚠️ …but after that, nothing happens (it hangs on “🌐 Sending deploy request…”)

This is what chatgpt says. The strange thing is that it simply won't upload, but it doesn't give any error response either. As soon as I try to upload the commands. Does anyone understand this?

frank forgeBOT
crimson gulch
#

sounds like you're ratelimited

#

can confirm by logging

#

rest.on('rateLimited', console.log)

frigid sapphire
crimson gulch
#

yeah you're ratelimited

#

make sure you're not deploying on start

#

and just wait it out

#

or I think resetting your token also resets it

#

but if you don't change anything you'll likely hit it again

frigid sapphire
crimson gulch
#

just waiting it out then

frigid sapphire
crimson gulch
#

and yeah if you deploy on every start then you'll likely hit it quickly

#

that's why the guide does it in a separate script called manually when you change commands

crimson gulch
frigid sapphire
#

I put it in that script because it didn't work anymore.

frigid sapphire
crimson gulch
#

maybe it resets if you keep hitting it, not sure how it works

#

just wait it out and you'll be fine

#

ah, and remove it from the start logic

frigid sapphire
#

I did. I just think it's a shame I have to wait for this. Because my whole discord runs on slash commands.

crimson gulch
#

you don't need to deploy for commands to work though

#

the ones you had will work fine

#

you just can't update that list

#

which is what deploying does

frigid sapphire
prime phoenixBOT
#

If you have duplicate commands on your server, you registered both global and guild commands.

You can remove the duplicates by resetting either the global or guild commands

  • Resetting global commands: rest.put(Routes.applicationCommands(clientId), { body: [] })
  • Resetting guild commands: rest.put(Routes.applicationGuildCommands(clientId, guildId), { body: [] })
frigid sapphire
crimson gulch
frigid sapphire
frigid sapphire
#

It was very short that it worked again. he is now that I am in a cooldown again!

vivid ravine
#

How often are you re-deploying your commands?

You should only ever deploy your commands when you actually make changes to your command structure

#

So when you change things like the "name" "description" or "options" of a command, add new commands, or remove existing commands

When you change the code that is run when a command is executed, you do NOT need to redeploy

#

Additionally. It's also helpful to do all development on a second bot account than your main bot

This is so that if you ever DO get rate limited, by something you're testing, it doesn't effect your main bot

frigid sapphire
sturdy cipher
#

Then you wouldn't be rateLimited if that was true. You probably delete and recreate all commands on every start by the sound of it

frigid sapphire
sturdy cipher
#

That won't cause it to ratelimit immediately again though

frigid sapphire
sturdy cipher
#

if you still have the code to delete all commands in your code: yes

shut elm
#

Data deployed to discord stays there until you change it or delete it

#

Deleting it once makes it, well, deleted