{"id":14978643,"url":"https://github.com/fjodor-rybakov/discord-nestjs","last_synced_at":"2025-05-15T02:09:18.066Z","repository":{"id":36973062,"uuid":"287092855","full_name":"fjodor-rybakov/discord-nestjs","owner":"fjodor-rybakov","description":"👾 NestJS package for discord.js","archived":false,"fork":false,"pushed_at":"2025-05-05T06:25:03.000Z","size":6926,"stargazers_count":276,"open_issues_count":8,"forks_count":49,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-05T12:08:10.794Z","etag":null,"topics":["bot","decorator","discord","nest","nestjs","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fjodor-rybakov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-08-12T18:56:29.000Z","updated_at":"2025-03-10T20:22:38.000Z","dependencies_parsed_at":"2024-04-05T10:29:50.500Z","dependency_job_id":"93586f03-e62c-46bd-a672-66ecc8c759fc","html_url":"https://github.com/fjodor-rybakov/discord-nestjs","commit_stats":{"total_commits":906,"total_committers":21,"mean_commits":"43.142857142857146","dds":0.4690949227373068,"last_synced_commit":"e0a52077349931495af04bc8190b59981a8b1506"},"previous_names":[],"tags_count":200,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fjodor-rybakov%2Fdiscord-nestjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fjodor-rybakov%2Fdiscord-nestjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fjodor-rybakov%2Fdiscord-nestjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fjodor-rybakov%2Fdiscord-nestjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fjodor-rybakov","download_url":"https://codeload.github.com/fjodor-rybakov/discord-nestjs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254259384,"owners_count":22040820,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bot","decorator","discord","nest","nestjs","typescript"],"created_at":"2024-09-24T13:58:06.426Z","updated_at":"2025-05-15T02:09:18.044Z","avatar_url":"https://github.com/fjodor-rybakov.png","language":"TypeScript","funding_links":["https://paypal.com/paypalme/fjodorrybakov"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\r\n  \u003ca href=\"http://nestjs.com/\" target=\"blank\"\u003e\u003cimg src=\"https://nestjs.com/img/logo_text.svg\" width=\"320\" alt=\"Nest Logo\" /\u003e\u003c/a\u003e\r\n\u003c/p\u003e\r\n\r\n[travis-image]: https://api.travis-ci.org/nestjs/nest.svg?branch=master\r\n[travis-url]: https://travis-ci.org/nestjs/nest\r\n[linux-image]: https://img.shields.io/travis/nestjs/nest/master.svg?label=linux\r\n[linux-url]: https://travis-ci.org/nestjs/nest\r\n\r\n  \u003cp align=\"center\"\u003eA progressive \u003ca href=\"http://nodejs.org\" target=\"blank\"\u003eNode.js\u003c/a\u003e framework for building efficient and scalable server-side applications, heavily inspired by \u003ca href=\"https://angular.io\" target=\"blank\"\u003eAngular\u003c/a\u003e.\u003c/p\u003e\r\n    \u003cp align=\"center\"\u003e\r\n\u003ca href=\"https://github.com/fjodor-rybakov/discord-nestjs/blob/master/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/npm/l/@nestjs/core.svg\" alt=\"Package License\" /\u003e\u003c/a\u003e\r\n  \u003ca href=\"https://paypal.com/paypalme/fjodorrybakov\"\u003e\u003cimg src=\"https://img.shields.io/badge/Donate-PayPal-dc3d53.svg\"/\u003e\u003c/a\u003e\r\n\u003c/p\u003e\r\n\r\n\r\n\r\n## 👨🏻‍💻 Installation \u003ca name=\"Installation\"\u003e\u003c/a\u003e\r\n\r\n```bash\r\n$ npm install @discord-nestjs/core discord.js\r\n```\r\n\r\nOr via yarn\r\n\r\n```bash\r\n$ yarn add @discord-nestjs/core discord.js\r\n```\r\n\r\n\r\n\r\n## 🧾 Description\r\n\r\nNestJS package for discord.js\r\n\r\nThis monorepo consists of several packages.\r\n* [@discord-nestjs/core](https://github.com/fjodor-rybakov/discord-nestjs/tree/master/packages/core) - Main package containing decorators, basic types and module declaration.\r\n* [@discord-nestjs/common](https://github.com/fjodor-rybakov/discord-nestjs/tree/master/packages/common) - Contains optional common templates. For example SlashCommandPipe or ValidationPipe.\r\n* [@discord-nestjs/schematics](https://github.com/fjodor-rybakov/discord-nestjs/tree/master/packages/schematics) - Provides cli to create a bot template.\r\n* Samples\r\n  * [@sample/command](https://github.com/fjodor-rybakov/discord-nestjs/tree/master/packages/sample/command) - Bot example with slash commands\r\n  * [@sample/command-by-glob](https://github.com/fjodor-rybakov/discord-nestjs/tree/master/packages/sample/command-by-glob) - Bot example with slash commands by glob pattern\r\n  * [@sample/command-by-http-request](https://github.com/fjodor-rybakov/discord-nestjs/tree/master/packages/sample/command-by-http-request) - Bot example with register slash commands by http request\r\n  * [@sample/sub-command](https://github.com/fjodor-rybakov/discord-nestjs/tree/master/packages/sample/sub-command) - Bot example with slash sub-commands and sub-groups\r\n  * [@sample/validation](https://github.com/fjodor-rybakov/discord-nestjs/tree/master/packages/sample/validation) - Bot example with slash commands validation\r\n  * [@sample/event](https://github.com/fjodor-rybakov/discord-nestjs/tree/master/packages/sample/event) - Bot example with events\r\n  * [@sample/dependency-injection](https://github.com/fjodor-rybakov/discord-nestjs/tree/master/packages/sample/dependency-injection) - Bot example with dependency injection\r\n  * [@sample/reaction-collector](https://github.com/fjodor-rybakov/discord-nestjs/tree/master/packages/sample/reaction-collector) - Bot example with reaction collector\r\n  * [@sample/message-collector](https://github.com/fjodor-rybakov/discord-nestjs/tree/master/packages/sample/message-collector) - Bot example with message collector\r\n  * [@sample/interaction-collector](https://github.com/fjodor-rybakov/discord-nestjs/tree/master/packages/sample/interaction-collector) - Bot example with interaction collector\r\n  * [@sample/prefix-command](https://github.com/fjodor-rybakov/discord-nestjs/tree/master/packages/sample/prefix-command) - Bot example with prefix command\r\n  * [@sample/modals](https://github.com/fjodor-rybakov/discord-nestjs/tree/master/packages/sample/modals) - Bot example with modals\r\n\r\n\r\n\r\n## ❓ Answers on questions\r\n\r\n### The bot starts up, but the slash commands and events do not work\r\n\r\n\u003cdetails\u003e\r\n  \u003csummary\u003eClick to expand\u003c/summary\u003e\r\n\r\nCheck your intent is passed to the `discordClientOptions` of the module. [More info](https://discordjs.guide/popular-topics/intents.html#privileged-intents)\r\n\r\n\u003c/details\u003e\r\n\r\n### I created DTO and added `SlashCommandPipe`, but when I receive response to the command, the DTO fields are missing\r\n\r\n\u003cdetails\u003e\r\n  \u003csummary\u003eClick to expand\u003c/summary\u003e\r\n\r\nSet `useDefineForClassFields` to `true` in your `tsconfig.json`.\r\nAlso check that the `@InteractionEvent` decorators are set.\r\n\r\n\u003c/details\u003e\r\n\r\nAny questions or suggestions? Join Discord https://discord.gg/kv89Q2dXSR\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffjodor-rybakov%2Fdiscord-nestjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffjodor-rybakov%2Fdiscord-nestjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffjodor-rybakov%2Fdiscord-nestjs/lists"}