Error when trying to upload global slash commands
I have no idea why I am getting this error. When I register slash commands locally everything works fine, but when I set
runBot(global = true)
I get the following error:
4 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ✅
Marked as resolved by OPDiscord.js version 14.14.1, node version 20.2.0
global = true
is overwriting the global
object. That's gonna break so many things.
If you're trying to pass true
as the argument, runBot(true)
.Thank you. I didn't realize there was a global object that would conflict with it. I renamed the variable, and it works now.