discord bot geneateur error
index.js:26
Uncaught DiscordAPIError DiscordAPIError: Invalid Form Body
embed.fields[1].value: This field is required
at <anonymous> (c:\Users\Desktop\node_modules\discord.js\src\client\rest\RequestHandlers\Sequential.js:85:15)
at <anonymous> (c:\Users\Desktop\node_modules\snekfetch\src\index.js:215:21)
at processTicksAndRejections (internal/process/task_queues:95:5)
Sequential.js:85
No debugger available, can not send 'variables'
Process exited with code 1
38 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.
- Issue solved? Press the button!HELP PLS
your embed's second field is missing its value
where..
can i give you the code ?
Show your code!
where can i?
can ypu donate me the line where i change
to send an embed you have to use embeds: []
line?
every line you send embeds
can you run npm ls discord.js
because i highly doubt you are using v14
i dont know what i use...
run the command i sent
ok wait
11.6.4
oof
yeah so
update discord.js
v11 is massively outdated
use v13 or preferably v14
npm i discord.js@14 ?
14.11.0
and then follow the guide
because you will need to rewrite your entire bot basically
😅
C:\Program Files\nodejs\node.exe .\index.js
Process exited with code 1
Uncaught DiscordjsError TypeError [ClientMissingIntents]: Valid intents must be provided for the Client.
at _validateOptions (c:\Users\manso\Desktop\Account-Generator-Bot-main\node_modules\discord.js\src\client\Client.js:492:13)
at Client (c:\Users\manso\Desktop\Account-Generator-Bot-main\node_modules\discord.js\src\client\Client.js:78:10)
at <anonymous> (c:\Users\manso\Desktop\Account-Generator-Bot-main\index.js:2:13)
at Module._compile (internal/modules/cjs/loader:1256:14)
at Module._extensions..js (internal/modules/cjs/loader:1310:10)
you must provide intents for the client
as i told you, read the guide
i have most probleme...
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
yess french
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
ok but thiss...
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
i prefere the version 11
its not supported anymore
nor is 12
and it will break
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
i have juste this probleme
we do not support it anymore
its just a matter of time before you run into another error
just update
you'll be forced to upate anyway as the api v11 uses will be deprecated at some point
it should already be deprecated even
Okay but I can't cod ...
then check out #resources
I gave my script, if by the best of the kindness someone can modify it to do so will be my day of luck
no
#rules 3
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
okk