If you are forking this replit, there are a few things to consider:
- You must update your node version to at least version 20.
- Open the Shell and check your version with:
node -v
- Update to version 20 if not, copy and paste this into the Shell:
npm init -y && npm i --save-dev node@20 && npm config set prefix=$(pwd)/node_modules/node && export PATH=$(pwd)/node_modules/node/bin:$PATH
- Please use the following package versions:
"dependencies": {
"@discordjs/builders": "^1.6.5",
"@discordjs/rest": "^2.0.1",
"discord-api-types": "^0.37.56",
"discord.js": "^14.13.0",
"express": "^4.18.2"
}
- Check your package.json file to see what versions you are running
- Update the version manually in the package.json file and re-run your bot
From the Shell, type:
node deploy-commands.js
node index.js
- Format the file by saving it or clicking on the format button on the active tab at the top of the screen
- Stop and restart the bot
Discord Developer Portal - List of Intents