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 docs2y 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.
j
j2y ago
node version: v18.7.0 djs version: 14.3.0
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
j
j2y ago
the actual command
j
j2y ago
j
j2y 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