Skip to content

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.

Notifications You must be signed in to change notification settings

NorryBoddy/Discord.js-v15-Documentation

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

9 Commits
ย 
ย 

Repository files navigation

Discord.js-v15-Documentation

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published