#Slash commands are odd

27 messages · Page 1 of 1 (latest)

frank briar
#

My slash commands register on my laptop for local testing but when I push to my server, the same slash commands dont register

Its not my slash command code as I said, they register on my laptop haha

Things Ive tried

  • Changing bot token
  • Reinviting the bot with application.commands

Node version 16.15.0

tender charmBOT
#

• 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.

forest bough
#

it takes upto an hour to register global cmds btw

frank briar
#

They register immediately on my laptop and its been a couple of days since the bot has been online with no register on the vps

forest bough
#

if it is a global cmd, it can take an hour, guild cmds register immediately

frank briar
#

theyre all global, with no register even after an hour on my vps

forest bough
#

oh

frank briar
#

yep haha, its baffling that they register on one machine but not another

forest bough
#

maybe try re setting the cmds?

#

like remove all of them, and re add

frank briar
#

Ill wait for more feedback from others and if it doesnt work ill try that haha thanks for the speedy response

forest bough
#

😅👍

random jungle
#

by "not register" you mean that they actually don't register, or that you just don't see them in the command list in chat

frank briar
#

They dont register, i dont see the supports commands symbol while I do on the laptop

random jungle
#

that has to be probably the most meaningless way to check for that lol

frank briar
#

yeah haha, but its the way that I was checking haha, I dont seem them in chat either if that helps 😆

random jungle
#

well, for that there could be a couple reasons that could fit my understanding of your issue

#

but

#

are you registering to the same server and checking that same server from 2 different devices?

#

if yes, then there's probably nothing we can do at all with that

frank briar
#

same server, same bot, two different devices, my laptop and my deployed vps

#

both have the same node and same packages

random jungle
#

oh, so you run 2 different copies of the code, that does the same thing to same server?

#

and one of those works, one doesn't?

frank briar
#

same code

#

I deploy it using docker to my vps, one works and one doesnt

#

its the same bot in the same guild, when I run the bot on my laptop slash commands work, when I run it on my server, it doesnt haha