Discord API error [50035] : invalid form body
heres the code of slash command
code of one of my slash command
13 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!"discord.js": "^14.13.0",
like this
slashcommands.push(command.data.toJSON());
?
@Qjuh but uh when i use that it says cannot read properties of undefined reading 'toJSON'
thats why i used stringify
bc someone said to use that
and i have to reinvite the bot everytime when i add a new slash command bc of that error
ohhh so one of my command is doing that??
welp
now i have to find it
i have so many commands
you could log the name of the file before trying to do something with it
so you know which one is failing
how can i do that
logging it?
with console.log
oh yea
tysm @Qjuh and @Amgelo i fixed it
there was 3 random.js files with nothing inside
uh oh
one problem
i still have to reinvite the bot for it to show new slash commands..
no errors or anything..
@Amgelo
are you sure that's not just your client cache?
you could try restarting your client
ctrl + r
also, not related to your issue but that's a ton of intents
I'm almost certain you don't need all of them
yeah ik but i just keep it there
it's recommended for you to only keep the ones you need
that's the whole point of intents after all
else they wouldn't be a thing