{"_id":"@64zoolane/djs13","_rev":"1-b9d8125328f8a1151e40167271d4c901","name":"@64zoolane/djs13","dist-tags":{"latest":"13.2.0-dev"},"versions":{"13.2.0-dev":{"name":"@64zoolane/djs13","version":"13.2.0-dev","description":"A powerful library for interacting with the Discord API","main":"./src/index.js","module":"./src/index.mjs","types":"./typings/index.d.ts","exports":{"./*":"./*",".":{"require":"./src/index.js","import":"./src/index.mjs"}},"scripts":{"test":"npm run lint && npm run docs:test && npm run lint:typings","test:typescript":"tsc","docs":"docgen --source src --custom docs/index.yml --output docs/docs.json","docs:test":"docgen --source src --custom docs/index.yml","lint":"eslint src","lint:fix":"eslint src --fix","lint:typings":"tslint typings/index.d.ts","prettier":"prettier --write src/**/*.js typings/**/*.ts","prepublishOnly":"npm run test && gen-esm-wrapper ./src/index.js ./src/index.mjs","prepare":"is-ci || husky install","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s"},"repository":{"type":"git","url":"git+https://github.com/discordjs/discord.js.git"},"keywords":["discord","api","bot","client","node","discordapp"],"author":{"name":"Amish Shah","email":"amish@shah.gg"},"license":"Apache-2.0","bugs":{"url":"https://github.com/discordjs/discord.js/issues"},"homepage":"https://github.com/discordjs/discord.js#readme","dependencies":{"@discordjs/builders":"^0.5.0","@discordjs/collection":"^0.2.1","@discordjs/form-data":"^3.0.1","@sapphire/async-queue":"^1.1.4","@types/ws":"^7.4.7","discord-api-types":"^0.22.0","node-fetch":"^2.6.1","ws":"^7.5.1"},"devDependencies":{"@commitlint/cli":"^13.1.0","@commitlint/config-angular":"^13.1.0","@discordjs/docgen":"^0.10.0","@favware/npm-deprecate":"^1.0.2","@types/node":"^16.4.12","conventional-changelog-cli":"^2.1.1","cross-env":"^7.0.3","dtslint":"^4.1.3","eslint":"^7.32.0","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.23.4","eslint-plugin-prettier":"^3.4.0","gen-esm-wrapper":"^1.1.2","husky":"^7.0.1","is-ci":"^3.0.0","jest":"^27.0.6","lint-staged":"^11.1.1","prettier":"^2.3.2","tslint":"^6.1.3","typescript":"^4.3.5"},"engines":{"node":">=16.6.0","npm":">=7.0.0"},"gitHead":"d16ada97087e0324134484c9c0724b52a2839bdf","_id":"@64zoolane/djs13@13.2.0-dev","_nodeVersion":"16.8.0","_npmVersion":"7.21.0","dist":{"integrity":"sha512-KcmyB4/kCzJjNFIqKpneYNSKWhx3K0TssMYQRxZLviAFwwNxHPQL+QG8I/aCddnEgG2VdMt43plfBFIxyPBImA==","shasum":"c0174b892c64d4c01aee0ae1f0eadda3d468f5ce","tarball":"https://registry.npmjs.org/@64zoolane/djs13/-/djs13-13.2.0-dev.tgz","fileCount":254,"unpackedSize":1133986,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhLimoCRA9TVsSAnZWagAAa6QP/2V9bmrJDMshi7Pyxz0j\nDx6d4llycxsBmlb4UpfWpSklPPXG8n1LM7WrkFBk7lo/wLP33BD5oWf7gsSo\nzuisHVr3YNKjkxjwr1Hjozwt8rVxd5RjyLw/t8WUQtK7rI6aF2Lzl6u7jgCC\nsb4g0i1CmaaloKy7Cb0rv2a6UvjTplh03bUH5j2yb1n3CVtlvOsTQqJXH4rf\nBFIvoFHZ0kvsh3oc1i+C0n+sZ1C4kXfIJvUlrTD0SA6c0EEjPY8i5mmMJ51K\nmWPT8jdNrwDv0KthLlvjBU770Px2tuGel3XVqes2ASa7H7tTBMD+c8jHW68r\nK4pQT/9LHLSVatr+VMbcMtKNEB97vHrQrVj/jbmkVcSmTriqAkSMogySdD1v\nWgsOgGeTMGOnuU5GiE2qbN6HS4iKAdBmQys1ocvLUR2DxPm1WvJrFBFPcQAH\nMXV5NQmwiSsaQ0kLsLsDFdTsLKB0rKLE3aMZDAp4P7INO8T0U8IZeAVbYDAn\nuxJobLw9HqVM9NegKcfMz0Pj7WDp9IUx76Jh+PGvFICMjKF6Ft9rIsL2YN2i\n1An/Tm/R38oawEyPtHJXhzl1EyM5aEjA+mkAR7+MDoIrNwFPNb7auMm1chne\nUt6fFhdXChc7e8FQSeg333ZSp8dzcVTZ/HZ4saEx/JGhWujQQol5/tc87R5S\n3PrZ\r\n=2HXH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH/Cgi4SWvpEBYIssuMvsx1TIxGZgT0aBqJJTQrmTvBcAiEAxv2Gph/iofrqeOi2G4Bq5Sn9sbUnkezO9ZLcqqzDl3c="}]},"_npmUser":{"name":"64zoolane","email":"jc2606@protonmail.com"},"directories":{},"maintainers":[{"name":"64zoolane","email":"jc2606@protonmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/djs13_13.2.0-dev_1630415272238_0.9438195248204337"},"_hasShrinkwrap":false}},"time":{"created":"2021-08-31T13:07:52.171Z","13.2.0-dev":"2021-08-31T13:07:52.415Z","modified":"2022-04-04T10:48:48.145Z"},"maintainers":[{"name":"64zoolane","email":"jc2606@protonmail.com"}],"description":"A powerful library for interacting with the Discord API","homepage":"https://github.com/discordjs/discord.js#readme","keywords":["discord","api","bot","client","node","discordapp"],"repository":{"type":"git","url":"git+https://github.com/discordjs/discord.js.git"},"author":{"name":"Amish Shah","email":"amish@shah.gg"},"bugs":{"url":"https://github.com/discordjs/discord.js/issues"},"license":"Apache-2.0","readme":"<div align=\"center\">\n  <br />\n  <p>\n    <a href=\"https://discord.js.org\"><img src=\"https://discord.js.org/static/logo.svg\" width=\"546\" alt=\"discord.js\" /></a>\n  </p>\n  <br />\n  <p>\n    <a href=\"https://discord.gg/djs\"><img src=\"https://img.shields.io/discord/222078108977594368?color=5865F2&logo=discord&logoColor=white\" alt=\"Discord server\" /></a>\n    <a href=\"https://www.npmjs.com/package/discord.js\"><img src=\"https://img.shields.io/npm/v/discord.js.svg?maxAge=3600\" alt=\"NPM version\" /></a>\n    <a href=\"https://www.npmjs.com/package/discord.js\"><img src=\"https://img.shields.io/npm/dt/discord.js.svg?maxAge=3600\" alt=\"NPM downloads\" /></a>\n    <a href=\"https://github.com/discordjs/discord.js/actions\"><img src=\"https://github.com/discordjs/discord.js/workflows/Testing/badge.svg\" alt=\"Build status\" /></a>\n    <a href=\"https://www.patreon.com/discordjs\"><img src=\"https://img.shields.io/badge/donate-patreon-F96854.svg\" alt=\"Patreon\" /></a>\n  </p>\n</div>\n\n## About\n\ndiscord.js is a powerful [Node.js](https://nodejs.org) module that allows you to easily interact with the\n[Discord API](https://discord.com/developers/docs/intro).\n\n- Object-oriented\n- Predictable abstractions\n- Performant\n- 100% coverage of the Discord API\n\n## Installation\n\n**Node.js 16.6.0 or newer is required.**  \n\n```sh-session\nnpm install discord.js\nyarn add discord.js\npnpm add discord.js\n```\n\n### Optional packages\n\n- [zlib-sync](https://www.npmjs.com/package/zlib-sync) for WebSocket data compression and inflation (`npm install zlib-sync`)\n- [erlpack](https://github.com/discord/erlpack) for significantly faster WebSocket data (de)serialisation (`npm install discord/erlpack`)\n- [bufferutil](https://www.npmjs.com/package/bufferutil) for a much faster WebSocket connection (`npm install bufferutil`)\n- [utf-8-validate](https://www.npmjs.com/package/utf-8-validate) in combination with `bufferutil` for much faster WebSocket processing (`npm install utf-8-validate`)\n- [@discordjs/voice](https://github.com/discordjs/voice) for interacting with the Discord Voice API\n\n## Example usage\n\nInstall all required dependencies:\n```sh-session\nnpm install discord.js @discordjs/rest discord-api-types\nyarn add discord.js @discordjs/rest discord-api-types\npnpm add discord.js @discordjs/rest discord-api-types\n```\n\nRegister a slash command against the Discord API:\n```js\nconst { REST } = require('@discordjs/rest');\nconst { Routes } = require('discord-api-types/v9');\n\nconst commands = [{\n  name: 'ping',\n  description: 'Replies with Pong!'\n}]; \n\nconst rest = new REST({ version: '9' }).setToken('token');\n\n(async () => {\n  try {\n    console.log('Started refreshing application (/) commands.');\n\n    await rest.put(\n      Routes.applicationGuildCommands(CLIENT_ID, GUILD_ID),\n      { body: commands },\n    );\n\n    console.log('Successfully reloaded application (/) commands.');\n  } catch (error) {\n    console.error(error);\n  }\n})();\n```\n\nAfterwards we can create a quite simple example bot:\n```js\nconst { Client, Intents } = require('discord.js');\nconst client = new Client({ intents: [Intents.FLAGS.GUILDS] });\n\nclient.on('ready', () => {\n  console.log(`Logged in as ${client.user.tag}!`);\n});\n\nclient.on('interactionCreate', async interaction => {\n  if (!interaction.isCommand()) return;\n\n  if (interaction.commandName === 'ping') {\n    await interaction.reply('Pong!');\n  }\n});\n\nclient.login('token');\n```\n\n## Links\n\n- [Website](https://discord.js.org/) ([source](https://github.com/discordjs/website))\n- [Documentation](https://discord.js.org/#/docs)\n- [Guide](https://discordjs.guide/) ([source](https://github.com/discordjs/guide))\n  See also the [Update Guide](https://discordjs.guide/additional-info/changes-in-v13.html), including updated and removed items in the library.\n- [Discord.js Discord server](https://discord.gg/djs)\n- [Discord API Discord server](https://discord.gg/discord-api)\n- [GitHub](https://github.com/discordjs/discord.js)\n- [NPM](https://www.npmjs.com/package/discord.js)\n- [Related libraries](https://discord.com/developers/docs/topics/community-resources#libraries)\n\n### Extensions\n\n- [RPC](https://www.npmjs.com/package/discord-rpc) ([source](https://github.com/discordjs/RPC))\n\n## Contributing\n\nBefore creating an issue, please ensure that it hasn't already been reported/suggested, and double-check the\n[documentation](https://discord.js.org/#/docs).  \nSee [the contribution guide](https://github.com/discordjs/discord.js/blob/main/.github/CONTRIBUTING.md) if you'd like to submit a PR.\n\n## Help\n\nIf you don't understand something in the documentation, you are experiencing problems, or you just need a gentle\nnudge in the right direction, please don't hesitate to join our official [Discord.js Server](https://discord.gg/djs).\n","readmeFilename":"README.md"}