DJS Commandsv2 docs
Getting Started

Installation

Add @djs-commands/core to a Discord.js project.

Install Discord.js

Skip this if your project already has it.

bun add discord.js
pnpm add discord.js
npm install discord.js
yarn add discord.js

Install @djs-commands/core

bun add @djs-commands/core
pnpm add @djs-commands/core
npm install @djs-commands/core
yarn add @djs-commands/core

v2 is published to the new @djs-commands npm organization. The legacy v1 package (@d3oxy/djs-commands) is not API-compatible — see the v1 → v2 migration notes once you're ready.

djs-commands is designed around TypeScript inference. If you don't already have a tsconfig.json, the minimal one below works for Node 22+:

tsconfig.json
{
	"compilerOptions": {
		"target": "ES2022",
		"module": "ESNext",
		"moduleResolution": "Bundler",
		"strict": true,
		"esModuleInterop": true,
		"skipLibCheck": true
	}
}

JavaScript also works — every example in these docs has a JS-compatible shape. Just drop the type annotations.

Next

Continue to Your first command to wire it all together.

Last updated on

On this page