{"_id":"@damirlut/necord","_rev":"3-68971398912c9b24030d9915322cd9b5","name":"@damirlut/necord","dist-tags":{"dev":"6.13.0","latest":"7.0.1"},"versions":{"6.13.0":{"name":"@damirlut/necord","version":"6.13.0","keywords":["nest","nestjs","nestjs-module","discord","discordjs","discord bot","discord bot api","bot","bot api","bot framework"],"author":{"name":"Alexey Filippov","email":"socket.someone@gmail.com"},"license":"MIT","_id":"@damirlut/necord@6.13.0","maintainers":[{"name":"damirlut","email":"lutfrahmanovdamir3@gmail.com"}],"contributors":[{"name":"Alexey Filippov","email":"socket.someone@gmail.com"}],"homepage":"https://necord.org","bugs":{"url":"https://github.com/necordjs/necord/issues"},"dist":{"shasum":"803c3423410d8dca3c89ab2c52343d9ce2cfc96d","tarball":"https://registry.npmjs.org/@damirlut/necord/-/necord-6.13.0.tgz","fileCount":247,"integrity":"sha512-BvaOLrD6PmBrIGAXeGZnmYUm11HfpMeq4le7D4N/2tbMbNxUs0a5NKld0DnDFztYL9rRCuownxBVa8EjV6o/aQ==","signatures":[{"sig":"MEYCIQDZAQ3/AoljDpeTqX6CFDpg/EF293KzD8NAuUFJ4KTouwIhAKhmPnoXbOrF05Igdsjv93ZW7ZKAlEpzhwFO5UIeoAn7","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":480932},"main":"./dist/index.js","types":"./dist/index.d.ts","engines":{"npm":">=8.6.0","node":">=18"},"funding":{"url":"https://opencollective.com/necord","type":"opencollective"},"gitHead":"cc6741996535fc48c7a701531cd8609503f75f29","scripts":{"lint":"eslint --ignore-pattern .gitignore \"{src,apps,libs,test}/**/*.ts\"","test":"jest","build":"rimraf dist && tsc -p tsconfig.build.json","format":"prettier --write \"{src,apps,libs,test}/**/*.ts\"","prepare":"husky","test:ci":"jest --ci --passWithNoTests --coverage","test:cov":"jest --coverage","test:watch":"jest --watch","postinstall":"opencollective","publish:dev":"npm publish --access public --tag dev","publish:npm":"release-it","prepublish:dev":"npm run build","prepublish:npm":"npm run build"},"_npmUser":{"name":"damirlut","email":"lutfrahmanovdamir3@gmail.com"},"collective":{"url":"https://opencollective.com/necord","type":"opencollective","donation":{"text":"Become a financial contributor:"}},"repository":{"url":"git+https://github.com/necordjs/necord.git","type":"git"},"_npmVersion":"11.12.1","description":"A module for creating Discord bots using NestJS, based on Discord.js","directories":{"lib":"src","test":"test"},"lint-staged":{"*.ts":["npm run format","npm run test:ci"]},"_nodeVersion":"25.9.0","dependencies":{"tslib":"^2.8.1","path-to-regexp":"8.4.2","@nuxt/opencollective":"^0.4.1"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^30.1.2","rxjs":"7.8.2","husky":"9.1.7","eslint":"^10.0.0","rimraf":"6.1.3","globals":"^17.0.0","ts-jest":"^29.3.2","ts-node":"10.9.2","prettier":"3.8.3","@eslint/js":"^10.0.1","discord.js":"14.26.3","release-it":"20.0.1","typescript":"6.0.3","@types/jest":"^30.0.0","@types/node":"25.6.0","lint-staged":"16.4.0","@nestjs/core":"^11.1.6","@nestjs/common":"11.1.19","@commitlint/cli":"20.5.3","@nestjs/testing":"^11.1.0","@eslint/eslintrc":"^3.2.0","reflect-metadata":"0.2.2","discord-api-types":"0.38.47","typescript-eslint":"^8.21.0","eslint-plugin-import":"^2.31.0","eslint-config-prettier":"10.1.8","eslint-plugin-prettier":"5.5.5","@commitlint/config-angular":"20.5.3","@release-it/conventional-changelog":"^11.0.0"},"peerDependencies":{"rxjs":"^7.2.0","discord.js":"^14.0.1","@nestjs/core":"^10.2.0 || ^11.0.0","@nestjs/common":"^10.2.0 || ^11.0.0","reflect-metadata":"^0.2.1","discord-api-types":"^0.37.99"},"_npmOperationalInternal":{"tmp":"tmp/necord_6.13.0_1777986687319_0.2538951082996954","host":"s3://npm-registry-packages-npm-production"}},"7.0.0":{"name":"@damirlut/necord","version":"7.0.0","keywords":["nest","nestjs","nestjs-module","discord","discordjs","discord bot","discord bot api","bot","bot api","bot framework"],"author":{"name":"Alexey Filippov","email":"socket.someone@gmail.com"},"license":"MIT","_id":"@damirlut/necord@7.0.0","maintainers":[{"name":"damirlut","email":"lutfrahmanovdamir3@gmail.com"}],"contributors":[{"name":"Alexey Filippov","email":"socket.someone@gmail.com"}],"homepage":"https://necord.org","bugs":{"url":"https://github.com/necordjs/necord/issues"},"dist":{"shasum":"46c75db564e2406d2f3045a12bde75141c9a7097","tarball":"https://registry.npmjs.org/@damirlut/necord/-/necord-7.0.0.tgz","fileCount":227,"integrity":"sha512-CIMp1g9lzgbQET+OdYNp0Gu3y3w2ijfSPXNzIVGMzDX8VcSVPOIfzG/qlgtQ2CJpy8FYjeNR0sVERkIlp3Xouw==","signatures":[{"sig":"MEUCIQCdsY+Iu52pIlJBL9fGY5n9BYgFqrWgBI8HMkVdBdgVsAIgFEmcnH5h4h5FPm0rRy6wsGbcqQOFZd9F0XwqN2vhPu0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":192926},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"npm":">=8.6.0","node":"^20.19.0 || >=22.13.0"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./package.json":"./package.json"},"funding":{"url":"https://opencollective.com/necord","type":"opencollective"},"gitHead":"76f30cf8f7f5d72b7b22daf2970421a186fd88ad","scripts":{"lint":"oxlint --type-aware --deny-warnings src test","test":"vitest run","build":"rimraf dist && tsc -p tsconfig.build.json","format":"prettier --write \"{src,apps,libs,test}/**/*.ts\"","prepare":"husky","test:ci":"vitest run --coverage","test:cov":"vitest run --coverage","typecheck":"tsc -p tsconfig.json --noEmit","test:watch":"vitest","postinstall":"opencollective","publish:dev":"npm publish --access public --tag dev","publish:npm":"release-it","prepublish:dev":"npm run build","prepublish:npm":"npm run build"},"_npmUser":{"name":"damirlut","email":"lutfrahmanovdamir3@gmail.com"},"collective":{"url":"https://opencollective.com/necord","type":"opencollective","donation":{"text":"Become a financial contributor:"}},"repository":{"url":"git+https://github.com/necordjs/necord.git","type":"git"},"_npmVersion":"11.19.0","description":"A module for creating Discord bots using NestJS, based on Discord.js","directories":{"lib":"src","test":"test"},"lint-staged":{"*.ts":["npm run format","npm run test:ci"]},"_nodeVersion":"26.7.0","dependencies":{"tslib":"^2.8.1","path-to-regexp":"8.4.2","@nuxt/opencollective":"^0.4.1"},"_hasShrinkwrap":false,"devDependencies":{"rxjs":"7.8.2","husky":"9.1.7","eslint":"^10.0.0","oxlint":"1.81.0","rimraf":"6.1.3","vitest":"4.1.11","ts-node":"10.9.2","prettier":"3.9.6","discord.js":"14.27.0","release-it":"21.0.2","typescript":"7.0.2","@types/node":"26.4.0","lint-staged":"17.4.1","@nestjs/core":"12.0.1","@nestjs/common":"12.0.1","@commitlint/cli":"21.2.2","@nestjs/testing":"12.0.1","oxlint-tsgolint":"7.0.2001","reflect-metadata":"0.2.2","discord-api-types":"0.38.54","@vitest/coverage-v8":"4.1.11","eslint-plugin-prettier":"5.5.6","@commitlint/config-angular":"21.2.2","eslint-plugin-perfectionist":"5.11.0","@release-it/conventional-changelog":"^12.0.0"},"peerDependencies":{"rxjs":"^7.2.0","discord.js":"^14.0.1","@nestjs/core":"^10.2.0 || ^11.0.0 || ^12.0.0","@nestjs/common":"^10.2.0 || ^11.0.0 || ^12.0.0","reflect-metadata":"^0.2.1","discord-api-types":"^0.37.99"},"_npmOperationalInternal":{"tmp":"tmp/necord_7.0.0_1788514807194_0.8887746714236","host":"s3://npm-registry-packages-npm-production"}},"7.0.1":{"name":"@damirlut/necord","description":"A module for creating Discord bots using NestJS, based on Discord.js","version":"7.0.1","type":"module","scripts":{"build":"rimraf dist && tsc -p tsconfig.build.json","typecheck":"tsc -p tsconfig.json --noEmit","prepublish:npm":"npm run build","publish:npm":"release-it","prepublish:dev":"npm run build","publish:dev":"npm publish --access public --tag dev","prepare":"husky","postinstall":"opencollective","format":"prettier --write \"{src,apps,libs,test}/**/*.ts\"","lint":"oxlint --type-aware --deny-warnings src test","test":"vitest run","test:watch":"vitest","test:cov":"vitest run --coverage","test:ci":"vitest run --coverage"},"lint-staged":{"*.ts":["npm run format","npm run test:ci"]},"directories":{"lib":"src","test":"test"},"funding":{"type":"opencollective","url":"https://opencollective.com/necord"},"collective":{"type":"opencollective","url":"https://opencollective.com/necord","donation":{"text":"Become a financial contributor:"}},"main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./package.json":"./package.json"},"keywords":["nest","nestjs","nestjs-module","discord","discordjs","discord bot","discord bot api","bot","bot api","bot framework"],"license":"MIT","homepage":"https://necord.org","repository":{"type":"git","url":"git+https://github.com/necordjs/necord.git"},"bugs":{"url":"https://github.com/necordjs/necord/issues"},"author":{"name":"Alexey Filippov","email":"socket.someone@gmail.com"},"contributors":[{"name":"Alexey Filippov","email":"socket.someone@gmail.com"}],"dependencies":{"@nuxt/opencollective":"^0.4.1","path-to-regexp":"8.4.2","tslib":"^2.8.1"},"devDependencies":{"@commitlint/cli":"21.2.2","@commitlint/config-angular":"21.2.2","@nestjs/common":"12.0.1","@nestjs/core":"12.0.1","@nestjs/testing":"12.0.1","@release-it/conventional-changelog":"^12.0.0","@types/node":"26.4.0","@vitest/coverage-v8":"4.1.11","discord-api-types":"0.38.54","discord.js":"14.27.0","eslint":"^10.0.0","eslint-plugin-perfectionist":"5.11.0","eslint-plugin-prettier":"5.5.6","husky":"9.1.7","lint-staged":"17.4.1","oxlint":"1.81.0","oxlint-tsgolint":"7.0.2001","prettier":"3.9.6","reflect-metadata":"0.2.2","release-it":"21.0.2","rimraf":"6.1.3","rxjs":"7.8.2","ts-node":"10.9.2","typescript":"7.0.2","vitest":"4.1.11"},"peerDependencies":{"@nestjs/common":"^10.2.0 || ^11.0.0 || ^12.0.0","@nestjs/core":"^10.2.0 || ^11.0.0 || ^12.0.0","discord-api-types":"^0.37.99","discord.js":"^14.0.1","reflect-metadata":"^0.2.1","rxjs":"^7.2.0"},"engines":{"node":"^20.19.0 || >=22.13.0","npm":">=8.6.0"},"gitHead":"76f30cf8f7f5d72b7b22daf2970421a186fd88ad","_id":"@damirlut/necord@7.0.1","_nodeVersion":"26.7.0","_npmVersion":"11.19.0","dist":{"integrity":"sha512-ArsRMzMICEgGhVTdZq4sSKJV7Czp3t5FF0z2I2TRU8CsjZ1IeBJOjy078rzO/eM6Z8qlvL+oXZ1za3wGvwtDrg==","shasum":"fdfac626cd0c98974a4fdbd582c81ee8b383e448","tarball":"https://registry.npmjs.org/@damirlut/necord/-/necord-7.0.1.tgz","fileCount":227,"unpackedSize":173632,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICmLfITOie8IcuHdyjkJME7p9z963BES2V2NNzkfNxMoAiBs4jKib+lv/JJTVEe6C1HQAebXUmeq1GEe5Rn+G1CmGQ=="}]},"_npmUser":{"name":"damirlut","email":"lutfrahmanovdamir3@gmail.com"},"maintainers":[{"name":"damirlut","email":"lutfrahmanovdamir3@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/necord_7.0.1_1788885997846_0.09356366265464366"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-05T13:11:27.137Z","modified":"2026-09-08T16:46:38.108Z","6.13.0":"2026-05-05T13:11:27.522Z","7.0.0":"2026-09-04T09:40:07.323Z","7.0.1":"2026-09-08T16:46:37.970Z"},"bugs":{"url":"https://github.com/necordjs/necord/issues"},"author":{"name":"Alexey Filippov","email":"socket.someone@gmail.com"},"license":"MIT","homepage":"https://necord.org","keywords":["nest","nestjs","nestjs-module","discord","discordjs","discord bot","discord bot api","bot","bot api","bot framework"],"repository":{"type":"git","url":"git+https://github.com/necordjs/necord.git"},"description":"A module for creating Discord bots using NestJS, based on Discord.js","contributors":[{"name":"Alexey Filippov","email":"socket.someone@gmail.com"}],"maintainers":[{"name":"damirlut","email":"lutfrahmanovdamir3@gmail.com"}],"readme":"<div align=\"center\">\n   <h1>\n       <a href=\"#\"><img src=\"https://necord.org/img/logo.png\" alt =\"Necord Logo\"></a>\n   </h1>\n   🤖 A module for creating <b><a href=\"https://discord.com/\">Discord</a> bots</b> using <a href=\"https://nestjs.com\">NestJS</a>, based on <a href=\"https://discord.js.org/\">Discord.js</a>\n   <br/><br/>\n   <a href=\"https://necord.org\">Documentation ✨</a> &emsp; <a href=\"https://github.com/necordjs/necord\">Source code 🪡</a> &emsp; <a href=\"https://github.com/necordjs/samples\">Examples 🛠️</a> &emsp; <a href=\"https://discord.gg/mcBYvMTnwP\">Community 💬</a>\n</div>\n\n\n<br/>\n\n<p align=\"center\">\n    <a href='https://img.shields.io/npm/v/necord'><img src=\"https://img.shields.io/npm/v/necord\" alt=\"NPM Version\" /></a>\n    <a href='https://img.shields.io/npm/l/necord'><img src=\"https://img.shields.io/npm/l/necord\" alt=\"NPM License\" /></a>\n    <a href='https://img.shields.io/npm/dm/necord'><img src=\"https://img.shields.io/npm/dm/necord\" alt=\"NPM Downloads\" /></a>\n    <a href='https://img.shields.io/github/last-commit/necordjs/necord'><img src=\"https://img.shields.io/github/last-commit/SocketSomeone/necord\" alt=\"Last commit\" /></a>\n</p>\n\n\n## About\n\nThis package uses the best of the Node.js world under the hood. \n[Discord.js](https://github.com/discordjs/discord.js) is the most powerful\nlibrary for creating bots and [Nest.js](https://github.com/nestjs) is a progressive framework for creating well-architectured applications.\nThis module provides a fast and easy way of creating Discord bots and deep integration with your NestJS application.\n\n**Features**\n\n- Simple. Flexible. Easy to use.\n- Ability to create custom decorators.\n- Interact with Discord (Slash Commands, Context Menus, Message Components, Listeners).\n- Full support of NestJS guards, interceptors, filters and pipes!\n\nFor questions and support, please use\nthe [Issues](https://github.com/necordjs/necord/issues/new?assignees=&labels=question&template=question.yml).\n\n## Installation\n\n**Node.js 18.0.0 or newer is required.**\n\n```bash\n$ npm i necord discord.js\n$ yarn add necord discord.js\n$ pnpm add necord discord.js\n```\n\n## Usage\n\nOnce the installation process is complete, we can import the `NecordModule` into the root `AppModule`:\n\n```typescript\nimport { NecordModule } from 'necord';\nimport { Module } from '@nestjs/common';\nimport { AppUpdate } from './app.update';\n\n@Module({\n    imports: [\n        NecordModule.forRoot({\n            token: 'DISCORD_BOT_TOKEN',\n            intents: ['Guilds', 'GuildMessages', 'DirectMessages']\n        })\n    ],\n    providers: [AppUpdate]\n})\nexport class AppModule {\n}\n```\n\nThen create `app.update.ts` file and add `On`/`Once` decorators for handling Discord API events:\n\n```typescript\nimport { Injectable, Logger } from '@nestjs/common';\nimport { Context, On, Once, ContextOf } from 'necord';\nimport { Client } from 'discord.js';\n\n@Injectable()\nexport class AppUpdate {\n    private readonly logger = new Logger(AppUpdate.name);\n\n    public constructor(private readonly client: Client) {\n    }\n    \n    @Once('clientReady')\n    public onReady(@Context() [client]: ContextOf<'clientReady'>) {\n        this.logger.log(`Bot logged in as ${client.user.username}`);\n    }\n\n    @On('warn')\n    public onWarn(@Context() [message]: ContextOf<'warn'>) {\n        this.logger.warn(message);\n    }\n}\n```\n\nWhenever you need to handle any event data, use the `Context` decorator.\n\nIf you want to fully dive into Necord, check out these resources:\n\n* [Necord Wiki](https://necord.org) - Official documentation of Necord.\n* [Nest JS](https://docs.nestjs.com) - A progressive framework for creating well-architectured applications.\n* [Discord JS](https://discord.js.org) - The most powerful library for creating bots.\n* [Discord API](https://discord.com/developers/docs) - Official documentation of Discord API.\n\n## Backers\n\n<a href=\"https://opencollective.com/necord\" target=\"_blank\"><img src=\"https://opencollective.com/necord/backers.svg?width=1000\"/></a>\n\n## Stay in touch\n\n* Author - [Alexey Filippov](https://t.me/socketsomeone)\n* Twitter - [@SocketSomeone](https://twitter.com/SocketSomeone)\n\n## License\n\n[MIT](https://github.com/necordjs/necord/blob/master/LICENSE) © [Alexey Filippov](https://github.com/SocketSomeone)\n","readmeFilename":"README.md"}