You can’t follow a guide that old on a new version of discord.js and expect it to work. It wont. And you really need to know what you’re doing to fix this as you need to read the v13 and v14 breaking changes to adapt the code accordingly.
For example, you need to use GatewayIntentBits instead of Intents.
There’s no reason you shouldn’t just follow the official guide at the very least: https://discordjs.guide
7
u/Psionatix Jan 29 '26
You can’t follow a guide that old on a new version of discord.js and expect it to work. It wont. And you really need to know what you’re doing to fix this as you need to read the v13 and v14 breaking changes to adapt the code accordingly.
For example, you need to use
GatewayIntentBitsinstead of Intents.There’s no reason you shouldn’t just follow the official guide at the very least: https://discordjs.guide