back to home

discordjs / discord.js

A powerful JavaScript library for interacting with the Discord API

26,579 stars
4,071 forks
133 issues
TypeScriptJavaScriptMDX

AI Architecture Analysis

This repository is indexed by RepoMind. By analyzing discordjs/discord.js in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.

Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.

Embed this Badge

Showcase RepoMind's analysis directly in your repository's README.

[![Analyzed by RepoMind](https://img.shields.io/badge/Analyzed%20by-RepoMind-4F46E5?style=for-the-badge)](https://repomind-ai.vercel.app/repo/discordjs/discord.js)
Preview:Analyzed by RepoMind

Repository Summary (README)

Preview
<div align="center"> <br /> <p> <a href="https://discord.js.org"><img src="https://discord.js.org/static/logo.svg" width="546" alt="discord.js" /></a> </p> <br /> <p> <a href="https://discord.gg/djs"><img src="https://img.shields.io/badge/join_us-on_discord-5865F2?logo=discord&logoColor=white" alt="Discord server" /></a> <a href="https://www.npmjs.com/package/discord.js"><img src="https://img.shields.io/npm/v/discord.js.svg?maxAge=3600" alt="npm version" /></a> <a href="https://www.npmjs.com/package/discord.js"><img src="https://img.shields.io/npm/dt/discord.js.svg?maxAge=3600" alt="npm downloads" /></a> <a href="https://github.com/discordjs/discord.js/actions"><img src="https://github.com/discordjs/discord.js/actions/workflows/tests.yml/badge.svg" alt="Tests status" /></a> <a href="https://github.com/discordjs/discord.js/commits/main"><img src="https://img.shields.io/github/last-commit/discordjs/discord.js.svg?logo=github&logoColor=ffffff" alt="Last commit." /></a> <a href="https://github.com/discordjs/discord.js/graphs/contributors"><img src="https://img.shields.io/github/contributors/discordjs/discord.js.svg?maxAge=3600&logo=github&logoColor=fff&color=00c7be" alt="contributors" /></a> <a href="https://opencollective.com/discordjs"><img src="https://img.shields.io/opencollective/backers/discordjs?maxAge=3600&logo=opencollective" alt="backers" /></a> <a href="https://codecov.io/gh/discordjs/discord.js"><img src="https://codecov.io/gh/discordjs/discord.js/branch/main/graph/badge.svg?precision=2" alt="Code coverage" /></a> </p> <p> <a href="https://vercel.com/?utm_source=discordjs&utm_campaign=oss"><img src="https://raw.githubusercontent.com/discordjs/discord.js/main/.github/powered-by-vercel.svg" alt="Vercel" /></a> <a href="https://www.cloudflare.com"><img src="https://raw.githubusercontent.com/discordjs/discord.js/main/.github/powered-by-workers.png" alt="Cloudflare Workers" height="44" /></a> </p> </div>

About

This repository contains multiple packages with separate releases. You can find the assembled Discord API wrapper at discord.js. It is a powerful Node.js module that allows you to easily interact with the Discord API.

Packages

  • discord.js (source) - A powerful Node.js module for interacting with the Discord API
  • create-discord-bot (source) - A CLI tool to quickly scaffold a Discord bot project
  • @discordjs/brokers (source) - A collection of brokers for use with discord.js
  • @discordjs/builders (source) - A utility package for easily building Discord API payloads
  • @discordjs/collection (source) - A powerful utility data structure
  • @discordjs/core (source) - A thinly abstracted wrapper around the core components of the Discord API
  • @discordjs/formatters (source) - A collection of functions for formatting strings
  • @discordjs/proxy (source) - A wrapper around @discordjs/rest for running an HTTP proxy
  • @discordjs/rest (source) - A module for interacting with the Discord REST API
  • @discordjs/structures (source) - A wrapper around Discord's structures
  • @discordjs/util (source) - A collection of utility functions
  • @discordjs/voice (source) - A module for interacting with the Discord Voice API
  • @discordjs/ws (source) - A wrapper around Discord's gateway

Containers

  • discordjs/proxy (source) - A lightweight HTTP proxy for Discord's API

Links

Extensions

Contributing

Please read through our contribution guidelines before starting a pull request. We welcome contributions of all kinds, not just code! If you're stuck for ideas, look for the good first issue label on issues in the repository. If you have any questions about the project, feel free to ask them on Discord. Before creating your own issue or pull request, always check to see if one already exists! Don't rush contributions, take your time and ensure you're doing it correctly.

Help

If you don't understand something in the documentation, you are experiencing problems, or you just need a gentle nudge in the right direction, please join our Discord server.