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.jspnpm add discord.jsnpm install discord.jsyarn add discord.jsInstall @djs-commands/core
bun add @djs-commands/corepnpm add @djs-commands/corenpm install @djs-commands/coreyarn add @djs-commands/corev2 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.
TypeScript (recommended)
djs-commands is designed around TypeScript inference. If you don't already have a tsconfig.json, the minimal one below works for Node 22+:
{
"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
