# discord.js

> JavaScript library

**Wikidata**: [Q111520056](https://www.wikidata.org/wiki/Q111520056)  
**Source**: https://4ort.xyz/entity/discord-js

## Summary
discord.js is a JavaScript library that enables developers to create Discord bots by providing an interface to the Discord API. It operates as cross-platform software, requiring Node.js for execution, and is distributed under the Apache License.

## Key Facts
- discord.js is a JavaScript library used specifically for creating Discord bots
- It is free software distributed under the Apache License (as of April 7, 2022)
- Cross-platform compatible and requires Node.js (inception date: May 27, 2009) for operation
- Official website: https://discord.js.org (last updated April 7, 2022)
- Latest stable version mentioned is 13.6.0 (released January 14, 2022)
- Maintained by the discordjs GitHub organization (github_username: discordjs)
- Source code repository: https://github.com/discordjs/discord.js
- Common aliases: d.js and djs
- Uses the Discord API for bot functionality

## FAQs
### Q: What is discord.js primarily used for?
A: discord.js is a JavaScript library designed exclusively for creating and managing Discord bots. It provides developers with tools to interact with the Discord API through a simplified JavaScript interface.

### Q: What license governs discord.js?
A: discord.js is distributed under the Apache License, allowing free use, modification, and distribution of the software, as documented in its GitHub repository (April 7, 2022 reference).

### Q: Does discord.js work on all operating systems?
A: Yes, it is cross-platform software that operates on any system supporting Node.js, including Windows, macOS, and Linux distributions.

## Why It Matters
discord.js democratizes Discord bot development by abstracting the complexities of the Discord API into a JavaScript framework. Its robust documentation, active community support (including a dedicated subreddit and Discord server), and npm integration have made it the de facto standard for creating Discord bots, enabling millions of custom automations, moderation tools, and interactive features across millions of Discord servers worldwide. Its cross-platform compatibility and consistent licensing further solidify its role as the cornerstone of the Discord bot ecosystem.

## Notable For
- Maintains the largest repository of Discord bot development tools with over 1.3 million npm downloads (version 13.6.0)
- Hosts the official documentation hub at discord.js.org with comprehensive API references
- Operates an active community server (Discord ID: 222078108977594368) for developer support
- Implements continuous integration testing for all code commits
- Features extensive specialized dependencies (@discordjs/builders, @discordjs/rest, discord-api-types) for advanced bot functionality

## Body
### Overview
discord.js is a JavaScript library specializing in Discord bot creation. It provides developers with programmatic access to the Discord API through an abstracted interface, enabling automation of server management, message handling, and user interactions.

### Version History
- Version 5.0.0 (stable release: November 20, 2015)
- Version 6.0.0 (stable release: January 31, 2016)
- Version 7.0.0 (stable release: April 13-16, 2016)
- Version 13.6.0 (stable release: January 13-14, 2022) - Latest documented stable version

### Dependencies
- Requires Node.js for execution
- Depends on node-fetch for HTTP requests
- Integrates ws for WebSocket connections
- Utilizes form-data for multipart data handling
- Requires specialized packages: @discordjs/builders, @discordjs/collection, @discordjs/rest, @discordjs/util, @sapphire/snowflake, and discord-api-types

### Licensing
- Distributed under the Apache License
- License source: GitHub repository (discordjs/discord.js/blob/main/packages/discord.js/LICENSE)
- Classified as free software with open-source distribution terms

### Community Infrastructure
- Official subreddit: Discordjs
- GitHub organization: discordjs
- Source code repository: https://github.com/discordjs/discord.js
- Stack Exchange support tag: https://stackoverflow.com/tags/discord.js
- Dedicated Discord server (ID: 222078108977594368)

### Development Practices
- Implements continuous integration via GitHub Actions
- Uses Git Smart HTTP over TLS for version control
- Maintains active npm publication (package name: discord.js)
- Google Knowledge Graph ID: /g/11rvfqlyk5

## References

1. [Source](https://github.com/discordjs/discord.js/blob/main/packages/discord.js/LICENSE)
2. [Source](https://github.com/discordjs/discord.js/releases/tag/13.6.0)
3. [npmjs](https://registry.npmjs.com/discord.js)
4. [Release 5.0.0. 2015](https://github.com/discordjs/discord.js/releases/tag/v5.0.0)
5. [Release 5.0.1. 2015](https://github.com/discordjs/discord.js/releases/tag/v5.0.1)
6. [Release 5.1.0. 2015](https://github.com/discordjs/discord.js/releases/tag/v5.1.0)
7. [Release 5.2.0. 2015](https://github.com/discordjs/discord.js/releases/tag/5.2.0)
8. [Release 5.3.0. 2015](https://github.com/discordjs/discord.js/releases/tag/v5.3.0)
9. [Release 5.3.1. 2015](https://github.com/discordjs/discord.js/releases/tag/v5.3.1)
10. [Release 5.3.2. 2016](https://github.com/discordjs/discord.js/releases/tag/5.3.2)
11. [Release 6.0.0. 2016](https://github.com/discordjs/discord.js/releases/tag/6.0.0)
12. [Release 7.0.0. 2016](https://github.com/discordjs/discord.js/releases/tag/7.0.0)
13. [Release 7.0.1. 2016](https://github.com/discordjs/discord.js/releases/tag/7.0.1)
14. [Release 8.0.0. 2016](https://github.com/discordjs/discord.js/releases/tag/8.0.0)
15. [Release 8.1.0. 2016](https://github.com/discordjs/discord.js/releases/tag/8.1.0)
16. [Release 9.0.2. 2016](https://github.com/discordjs/discord.js/releases/tag/9.0.2)
17. [Release 9.1.0. 2016](https://github.com/discordjs/discord.js/releases/tag/9.1.0)
18. [Release 9.1.1. 2016](https://github.com/discordjs/discord.js/releases/tag/9.1.1)
19. [Release 9.2.0. 2016](https://github.com/discordjs/discord.js/releases/tag/9.2.0)
20. [Release 9.3.0. 2016](https://github.com/discordjs/discord.js/releases/tag/9.3.0)
21. [Release 10.0.0. 2016](https://github.com/discordjs/discord.js/releases/tag/10.0.0)
22. [Release 10.0.1. 2016](https://github.com/discordjs/discord.js/releases/tag/10.0.1)
23. [Release 11.0.0. 2016](https://github.com/discordjs/discord.js/releases/tag/11.0.0)
24. [Release 11.1.0. 2017](https://github.com/discordjs/discord.js/releases/tag/11.1.0)
25. [Release 11.2.0. 2017](https://github.com/discordjs/discord.js/releases/tag/11.2.0)
26. [Release 11.3.0. 2018](https://github.com/discordjs/discord.js/releases/tag/11.3.0)
27. [Release 11.3.1. 2018](https://github.com/discordjs/discord.js/releases/tag/11.3.1)
28. [Release 11.3.2. 2018](https://github.com/discordjs/discord.js/releases/tag/11.3.2)
29. [Release 11.4.0. 2018](https://github.com/discordjs/discord.js/releases/tag/11.4.0)
30. [Release 11.4.1. 2018](https://github.com/discordjs/discord.js/releases/tag/11.4.1)
31. [Release 11.4.2. 2018](https://github.com/discordjs/discord.js/releases/tag/11.4.2)
32. [Release 11.5.0. 2019](https://github.com/discordjs/discord.js/releases/tag/11.5.0)
33. [Release 11.5.1. 2019](https://github.com/discordjs/discord.js/releases/tag/11.5.1)
34. [Release 11.6.0. 2020](https://github.com/discordjs/discord.js/releases/tag/11.6.0)
35. [Release 11.6.1. 2020](https://github.com/discordjs/discord.js/releases/tag/11.6.1)
36. [Release 11.6.2. 2020](https://github.com/discordjs/discord.js/releases/tag/11.6.2)
37. [Release 11.6.3. 2020](https://github.com/discordjs/discord.js/releases/tag/11.6.3)
38. [Release 11.6.4. 2020](https://github.com/discordjs/discord.js/releases/tag/11.6.4)
39. [Release 12.0.0. 2020](https://github.com/discordjs/discord.js/releases/tag/12.0.0)
40. [Release 12.0.1. 2020](https://github.com/discordjs/discord.js/releases/tag/12.0.1)
41. [Release 12.0.2. 2020](https://github.com/discordjs/discord.js/releases/tag/12.0.2)
42. [Release 12.1.0. 2020](https://github.com/discordjs/discord.js/releases/tag/12.1.0)
43. [Release 12.1.1. 2020](https://github.com/discordjs/discord.js/releases/tag/12.1.1)
44. [Release 12.2.0. 2020](https://github.com/discordjs/discord.js/releases/tag/12.2.0)
45. [Release 12.3.0. 2020](https://github.com/discordjs/discord.js/releases/tag/12.3.0)
46. [Release 12.3.1. 2020](https://github.com/discordjs/discord.js/releases/tag/12.3.1)
47. [Release 12.4.0. 2020](https://github.com/discordjs/discord.js/releases/tag/12.4.0)
48. [Release 12.4.1. 2020](https://github.com/discordjs/discord.js/releases/tag/12.4.1)
49. [Release 12.5.0. 2020](https://github.com/discordjs/discord.js/releases/tag/12.5.0)
50. [Release 12.5.1. 2020](https://github.com/discordjs/discord.js/releases/tag/12.5.1)