# discord.js

> A powerful JavaScript library for interacting with the Discord API

- Type: agent or tool
- Field: Assistants & Chat
- Repository: https://github.com/discordjs/discord.js
- GitHub stars: 26834
- Licence: Apache-2.0
- Language: TypeScript
- Last push: 2026-11-24
- Page: https://imutechz.in/agents/discord.js

## What it is
discord.js is a Node.js module for interacting with the Discord API. The repository contains multiple packages including the main discord.js wrapper, a CLI scaffolding tool, and specialized modules for REST, WebSocket, voice, and utility functions. It provides a comprehensive set of tools for building Discord applications.

## Features
- Main discord.js API wrapper for Discord interactions
- create-discord-bot CLI for project scaffolding
- @discordjs/rest for REST API communication
- @discordjs/ws for gateway WebSocket handling
- @discordjs/voice for voice connection support
- Utility packages for collections, builders, and formatters

## Best for
- Building Discord bots in JavaScript or TypeScript
- Creating Discord applications with REST and gateway access
- Developing voice-enabled Discord bots
- Rapid project setup with scaffolding tool

## Pros
- Comprehensive Discord API coverage with multiple specialized packages
- Active maintenance with test workflows and code coverage tracking
- Official documentation, guide, and community Discord server
- Modular architecture with separate packages for specific needs

## Cons
- Requires Node.js runtime environment
- Multiple packages may increase dependency complexity
- No browser support indicated in README

Tags: discord-bot, nodejs, javascript, typescript, api-wrapper, voice-chat, cli-tool, websocket
