MCPcopy
hub / github.com/discordjs/discord.js

github.com/discordjs/discord.js @14.26.4 sqlite

repository ↗ · DeepWiki ↗ · release 14.26.4 ↗
5,744 symbols 13,349 edges 943 files 2,357 documented · 41%
README
    <a href="https://discord.js.org"><img src="https://discord.js.org/static/logo.svg" width="546" alt="discord.js" /></a>









    <a href="https://discord.gg/djs"><img src="https://img.shields.io/discord/222078108977594368?color=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/test.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://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>






    <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>

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
  • @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/voice (source) - A module for interacting with the Discord Voice API
  • @discordjs/util (source) - A collection of utility functions
  • @discordjs/ws (source) - A wrapper around Discord's gateway

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.

Extension points exported contracts — how you extend this code

ToAPIApplicationCommandOptions (Interface)
(no doc) [79 implementers]
packages/builders/src/interactions/slashCommands/SlashCommandBuilder.ts
ApiOptionalMixin (Interface)
(no doc) [10 implementers]
packages/api-extractor-model/src/mixins/ApiOptionalMixin.ts
PrivateThreadChannel (Interface)
(no doc) [21 implementers]
packages/discord.js/typings/index.d.ts
Equatable (Interface)
(no doc) [18 implementers]
packages/util/src/Equatable.ts
IShardingStrategy (Interface)
(no doc) [5 implementers]
packages/ws/src/strategies/sharding/IShardingStrategy.ts
IHandler (Interface)
(no doc) [3 implementers]
packages/rest/src/lib/interfaces/Handler.ts
IAstModuleReference (Interface)
* Used with ExportAnalyzer.fetchAstModuleBySourceFile() to provide contextual information about how the source file * w
packages/api-extractor/src/analyzer/ExportAnalyzer.ts
Step (Interface)
* Represents a step in the path from node A to node B.
packages/voice/src/audio/TransformerGraph.ts

Core symbols most depended-on inside this repo

get
called by 339
packages/discord.js/src/structures/CommandInteractionOptionResolver.js
map
called by 327
packages/collection/src/collection.ts
push
called by 278
packages/voice/src/receive/AudioReceiveStream.ts
toJSON
called by 261
packages/builders/src/interactions/slashCommands/SlashCommandBuilder.ts
set
called by 253
packages/discord.js/src/structures/ClientPresence.js
parse
called by 213
packages/docgen/src/documentation.ts
on
called by 208
packages/core/src/Gateway.ts
send
called by 183
packages/discord.js/typings/index.d.ts

Shape

Method 3,073
Class 1,396
Interface 717
Function 512
Enum 46

Languages

TypeScript100%

Modules by API surface

packages/discord.js/typings/index.d.ts804 symbols
packages/core/src/api/guild.ts85 symbols
packages/discord.js/src/structures/Guild.js59 symbols
packages/api-extractor/src/generators/ApiModelGenerator.ts54 symbols
packages/collection/src/collection.ts46 symbols
packages/scripts/src/generateSplitDocumentation.ts43 symbols
packages/discord.js/src/structures/Message.js43 symbols
packages/discord.js/src/structures/GuildMember.js43 symbols
packages/discord.js/src/structures/ThreadChannel.js41 symbols
packages/core/src/api/channel.ts40 symbols
packages/api-extractor-utils/src/ApiNodeJSONEncoder.ts37 symbols
packages/voice/src/networking/Networking.ts34 symbols

Dependencies from manifests, versioned

@actions/core1.11.1 · 1×
@actions/glob0.5.1 · 1×
@aws-sdk/client-s33.995.0 · 1×
@babel/core7.29.0 · 1×
@babel/preset-env7.29.0 · 1×
@babel/preset-typescript7.24.6 · 1×
@commitlint/cli19.4.0 · 1×
@commitlint/config-angular19.3.0 · 1×
@discordjs/api-extractorworkspace:^ · 1×
@discordjs/api-extractor-modelworkspace:^ · 1×
@discordjs/api-extractor-utilsworkspace:^ · 1×
@discordjs/buildersworkspace:^ · 1×

For agents

$ claude mcp add discord.js \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact