#hi my bot v12 but ı upgrade to v14 but nor working beacuse ı cant do intents who can help me ?pls
21 messages · Page 1 of 1 (latest)
• 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.
Additional Information: Updating from v12 to v13
read more
Additional Information: Updating from v13 to v14
read more
my code is not working ı send you
this my code warden.js my error is a
C:\Users\erene\Desktop\KODLAMA\Warden\warden.js:8
Discord.Intents.FLAGS.GUILDS,
^
TypeError: Cannot read properties of undefined (reading 'FLAGS')
at Object.<anonymous> (C:\Users\erene\Desktop\KODLAMA\Warden\warden.js:8:21)
at Module._compile (node:internal/modules/cjs/loader:1126:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
at Module.load (node:internal/modules/cjs/loader:1004:32)
at Function.Module._load (node:internal/modules/cjs/loader:839:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:17:47
This is my error
ı talking AI but he cant solve it
ı dont underdstand guide
You updated your code to v13 successfully. But not v14.
RangeError [BitFieldInvalid]: Invalid bitfield flag or number: undefined
- All
SCREAMING_SNAKE_CASEenums have been changed toPascalCase - Intents:
Intents.FLAGS.GUILD_MESSAGES->GatewayIntentBits.GuildMessages - Permissions:
Permissions.FLAGS.SEND_MESSAGES->PermissionFlagsBits.SendMessages
ı convertor v13 firstly second v14 ?
Yeah, ChatGPT is not good at writing discord.js
how ı upgrade code v14
👆and the tag I just sent tells you what to replace for intents
hımm can you do example ?
for code
The guide I sent does have code examples (with before and after even)
inşallah olur yoksa olmaz :(
how ı upgrade v14 ı use Ra3d convertor
That’s only a v12->v13 converter. Follow the upgrade guide for 13->14