c-git / C-C-Rivals-Test-Bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Forking This Replit

If you are forking this replit, there are a few things to consider:

  1. 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
  1. 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

Re-registering Slash Commands

From the Shell, type:

node deploy-commands.js
node index.js

Updating Files

  1. Format the file by saving it or clicking on the format button on the active tab at the top of the screen
  2. Stop and restart the bot

References

Discord.js Guide

Discord.js Guide - Embeds

Discord.js Documentation

Discord Developer Portal - List of Intents

Discord Developer Portal - Applications

GatewayIntentBits

About


Languages

Language:JavaScript 100.0%