Content-Type error when registering guild commands

I have been trying to register slash commands to my guild for the past few minutes, but when I try do so I get met with 0[CONTENT_TYPE_INVALID]: Expected "Content-Type" header to be one of {'application/json'} Code if needed: https://sourceb.in/oTF3QdV6se (Command handler for clarification)
6 Replies
d.js docs
d.js docs3y 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.
jay
jayOP3y ago
node version: v18.7.0 djs version: 14.3.0
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
jay
jayOP3y ago
the actual command
jay
jayOP3y ago
jay
jayOP3y ago
ah i see alright so i have defined commandArray and it does log "registered commands" however the command doesnt show up this error is no more btw and now its working thanks @jiralite very cool
Want results from more Discord servers?
Add your server