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