{"schemaVersion":1,"id":"discord-js","name":"discord.js","locale":"en","canonicalUrl":"https://base.akulich.dev/en/library/discord-js/","officialUrl":"https://github.com/discordjs/discord.js","isCatalog":false,"description":"A Node.js Discord API and Gateway library: it helps create bots, commands, and server event integrations.","tasks":["Create a Discord bot with commands and events","Connect handlers to the Discord API and test a command in a test environment"],"categoryIds":["backend"],"subcategoryIds":["backend.api"],"tags":["discord.js","API","Development"],"aliases":["discordjs/discord.js","discord-js","discordjs-library"],"platforms":[],"stack":[],"compatibility":null,"pricing":"free","freeUsage":"Code and local use under Apache-2.0.","paidUsage":"Computing resources, self-hosting, and external services are paid for separately if used.","license":"Apache-2.0 for the code; third-party components retain their own terms.","selectionGuide":{"purpose":"Create a Discord bot with commands and events","chooseWhen":["Create a Discord bot with commands and events","Connect handlers to the Discord API and test a command in a test environment"],"considerInstead":[],"requirements":["The current main package README requires Node.js 24.17.0 or later; check the chosen release's requirement."],"limitations":["Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.","Terms of use: Apache-2.0 for the code; third-party components retain their own terms."],"faq":[{"question":"What can you use for free in discord.js?","answer":"Code and local use under Apache-2.0."},{"question":"What additional costs might arise with discord.js?","answer":"Computing resources, self-hosting, and external services are paid for separately if used."},{"question":"What terms of use matter for discord.js?","answer":"Apache-2.0 for the code; third-party components retain their own terms."},{"question":"How do you get started with discord.js?","answer":"Define commands, Gateway events, and required bot application permissions. Connect handlers to the Discord API and test a command in a test environment. Add error handling and an integration check of the result."},{"question":"What is needed for a simple slash-command bot?","answer":"The README separately demonstrates REST/Routes command registration and a Client InteractionCreate handler with Gateway intents. The voice API uses additional @discordjs/voice; zlib-sync and bufferutil are optional optimizations."}],"related":[],"sources":["https://github.com/discordjs/discord.js","https://raw.githubusercontent.com/discordjs/discord.js/HEAD/README.md","https://raw.githubusercontent.com/discordjs/discord.js/HEAD/LICENSE","https://www.open-source-tools.com/","https://raw.githubusercontent.com/discordjs/discord.js/HEAD/packages/discord.js/README.md"]},"selectionCheckedAt":null,"applicationGuide":{"goal":"Create a Discord bot with commands and events.","inputs":["A data contract or HTTP workflow.","A project with a supported runtime."],"steps":["Define commands, Gateway events, and required bot application permissions.","Connect handlers to the Discord API and test a command in a test environment.","Add error handling and an integration check of the result."],"checks":["Invalid and missing data are handled predictably.","Types and the actual response agree; errors are not hidden."]},"sources":["https://github.com/discordjs/discord.js","https://raw.githubusercontent.com/discordjs/discord.js/HEAD/README.md","https://raw.githubusercontent.com/discordjs/discord.js/HEAD/LICENSE","https://www.open-source-tools.com/","https://raw.githubusercontent.com/discordjs/discord.js/HEAD/packages/discord.js/README.md"],"checkedAt":"2026-10-06","reviewScope":"The purpose, current repository license, and separate terms for code, services, and models have been reviewed. The product was not run, and no security audit was performed.","relatedIds":[],"dataVersion":"cbbe7123b47a5ae80983","type":"Backend / API library","kind":"library","pricingNote":"Code and local use under Apache-2.0. Computing resources, self-hosting, and external services are paid for separately if used.","notes":null,"labeledSources":[{"url":"https://github.com/discordjs/discord.js","label":"Official source"},{"url":"https://raw.githubusercontent.com/discordjs/discord.js/HEAD/README.md","label":"Official source"},{"url":"https://raw.githubusercontent.com/discordjs/discord.js/HEAD/LICENSE","label":"License"},{"url":"https://www.open-source-tools.com/","label":"Catalog / discovery source"},{"url":"https://raw.githubusercontent.com/discordjs/discord.js/HEAD/packages/discord.js/README.md","label":"Official source"}],"licenseGuides":[{"id":"apache-2","title":"Apache 2.0 — permissive license with patent terms","scope":null,"summary":"You can use and modify the code in commercial and closed-source projects. When distributing it, retain the license and relevant notices, identify modified files, and include NOTICE if provided. Authors grant a limited patent license for their contributions; it does not grant permission to use trademarks.","url":"https://www.apache.org/licenses/LICENSE-2.0"}],"entryIds":[],"composition":null}