discordjs-nextgen

A simple, fast and modular Discord bot framework with ESM and CommonJS support.

Why discordjs-nextgen?

  • Fluent API: Set up your bot quickly with a chainable API.
  • Dynamic Loader: Auto-load commands and events from folders.
  • Hybrid Commands: Use the same logic for prefix and slash commands.
  • Middleware Support: Add logging, auth and cooldown pipelines.
  • Context Abstraction: Work with messages and interactions through one context.
  • Plugin System: Extend the framework with official plugins like Voice, JSX, Cache and Database.

Installation

1npm install discordjs-nextgen

Quick Start

1import { App, Intents, Logger, cooldown } from 'discordjs-nextgen';
2
3const app = new App({
4 intents: Intents.ALL,
5});
6
7app
8 .use(Logger({
9 colors: { info: 'cyan', error: 'red' }
10 }))
11 .use(cooldown(3))
12 .command({ folder: 'commands/hybrid' })
13 .button({ folder: 'buttons' })
14 .modal({ folder: 'modals' })
15 .select({ folder: 'selects' })
16 .prefix({ folder: 'commands/prefix', prefix: '!' })
17 .slash({ folder: 'commands/slash' })
18 .events('events')
19 .run('YOUR_DISCORD_TOKEN');