ns Docsns Docs
Getting Started

Prerequisites

Initial Setup for Discord App Development

What You Need

Make sure the following requirements are met before continuing:

  • Node.js (LTS version recommended)

    Node.js version 22.x is recommended for optimal compatibility with Discord.js v14. Node.js can be downloaded from the official website: https://nodejs.org/

  • npm (installed automatically with Node.js)
  • A Discord account
  • Basic knowledge of JavaScript or TypeScript

Creating a Project Directory

Create a new directory where the bot source code and configuration files will live.

mkdir discord-bot
cd discord-bot

Installing Discord.js

Discord.js is the primary library used to interact with the Discord API.

Install it using npm:

npm install discord.js

After installation, the project is capable of communicating with Discord.

Last updated on

On this page