Skip to content

nuekkis/Discord.js-v15

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 

Repository files navigation

discord.js Logo

Discord server npm version npm downloads Tests status Last commit. Code coverage

Vercel Cloudflare Workers

🚀 discord.js v15 — Developer Preview

The next evolution of the most powerful Node.js library for building Discord bots


📌 Summary

discord.js v15 represents a significant upgrade aimed at modernizing the developer experience and aligning with the latest Discord API advancements. This version introduces improved native support, better caching strategies, enhanced developer tooling, and future-ready design patterns.


📦 Installation

npm install discord.js@dev

⚠️ Requires Node.js v20.0.0 or later

Use nvm or nvm-windows for seamless version management.


✨ Highlights & Features

✅ Native Web API Support

  • First-class integration with fetch, AbortController, ReadableStream
  • Internal replacement of old polyfills
  • Powered by undici

💬 Modern Interaction Capabilities

  • Native APIs for modals, context menus, and UI components
  • Enhanced collectors & interaction responses
  • Future command routing system in the works

⚙️ Efficient Caching System

  • Fully customizable cache layers
  • Toggle caching per resource (guilds, users, members, roles...)
  • Expected REST-only mode for minimal memory use

🧠 Improved Developer Experience

  • Fully retyped for advanced TypeScript support
  • Smarter IntelliSense with Client and Interaction
  • Annotated JSDoc and better inline documentation

🌐 Gateway & Protocol Upgrades

  • Complete support for Discord Gateway v11
  • Graceful reconnections & lifecycle tracking

📊 Version Comparison (v14 vs v15)

Feature v14.x v15 (dev)
Node.js Support 16.x+ 20.x+
Native fetch
Modals Support ⚠️ Partial ✅ Full Native
Typings & IntelliSense Moderate 🔥 Excellent
REST-only Mode ✅ (Expected)
Built-in Router 🧪 Planned

🛠️ Recommended Tooling

  • Node.js: v20.x or higher
  • TypeScript: v5.x
  • Linters: ESLint, Prettier
  • Project Structure: Modular (commands, events, handlers)

🔮 Roadmap & Speculation

Area Future Status Description
ESM-only Support Likely CJS to be deprecated in favor of modern module systems
Built-in Command Router In development Simplified interaction-based routing system
CLI Tools In discussion Scaffolding and command generation support
Tree-shaking Support Possible Smaller production builds with dead-code elimination

📚 Learning & References


🤝 Community & Contributions


discord.js preview

Built with ❤️ by the open-source community — shaping the future of Discord bot development.

About

This repo contains the future features of Discord.js v15. Since the stable version is not fully released, the completeness or accuracy of the features is not guaranteed.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors