# discord.js

A powerful JavaScript library for interacting with the Discord API

Repository: https://github.com/discordjs/discord.js
Canonical: https://ross.abutalabs.com/products/discordjs
Homepage: https://discord.js.org
Language: TypeScript
License: Apache-2.0
License Family: permissive
Topics: discord-api, discord, nodejs, bot, voice-support, discord-bot, discordjs, discord-server, hacktoberfest
Last push: 2026-08-17T10:13:37+00:00
Link (homepage): https://discord.js.org
Link (site_page): https://discord.js.org/docs

## Health v2 (maintenance only)
Score: 92/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 98, release rhythm 81, longevity 100
- inputs: {"age_days": 4041, "days_push": 16, "days_rel": 45, "gap_med": 0.0, "n_releases_24m": 81}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 26805, forks 4073 (observed 2026-08-28T04:11:47.134194+00:00)

## What it is
discord.js is a powerful, object-oriented Node.js library for interacting with the Discord API, covering gateway events, REST calls, slash commands, and voice. It is the most popular way to build Discord bots in JavaScript or TypeScript.

## Use cases
- build a discord bot in nodejs
- handle slash commands and interactions on discord
- send and receive messages via the discord api
- add voice support to a discord bot
- create a moderation bot for a discord server
- scaffold a new discord bot project quickly

## When to choose
- you are building a Discord bot in JavaScript or TypeScript on Node.js
- you want full, well-abstracted coverage of the Discord API with an object-oriented design
- you need a mature, actively maintained library with a large community and official guide

## When to avoid
- you are building bots for platforms other than Discord
- you need a Python, Go, or Rust Discord library
- you want a zero-abstraction raw HTTP wrapper without object-oriented conveniences

## Facets
- artifact type: library
- maturity: stable
- function: sdk, http-client, websocket, chatbot
- domain: messaging-platforms, developer-tools, apis
- platform: cross-platform
- tags: discord-api, discord-bot, bot-framework, typescript, voice-support, slash-commands, automation, nodejs

## Member repositories
- discordjs/discord.js (main) score 92
- discordjs/guide (docs) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:47.134194+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T16:55:49.650614+00:00, confidence not recorded.
  - readme: https://github.com/discordjs/discord.js (fetched 2026-08-28T04:11:47.134194+00:00, sha 7f54d7176662)
  - homepage: https://discord.js.org (fetched 2026-08-29T07:52:39.416100+00:00, sha 64b23a1c02fd)
  - site_page: https://discord.js.org/docs (fetched 2026-08-29T07:52:39.425908+00:00, sha 9d99076dcf33)
- Data as of 2026-08-30T08:39:29.467469+00:00.
