{"_id":"@altkit/discord","_rev":"6-5ccb31cbbcf6c277235278b289c32a97","name":"@altkit/discord","dist-tags":{"latest":"4.2.0"},"versions":{"4.0.0":{"name":"@altkit/discord","version":"4.0.0","keywords":["discord.js","discord.js v14","selfbot","selfbot v14","djs","api","bot","node","discord","client","discordapp"],"author":{"name":"aiko-chan-ai"},"license":"GNU General Public License v3.0","_id":"@altkit/discord@4.0.0","maintainers":[{"name":"magiquedev","email":"isolent@proton.me"}],"homepage":"https://github.com/altkit/discord#readme","bugs":{"url":"https://github.com/altkit/discord/issues"},"dist":{"shasum":"68743a4d03f66899c5a52cb663d3b54fb3080f7f","tarball":"https://registry.npmjs.org/@altkit/discord/-/discord-4.0.0.tgz","fileCount":373,"integrity":"sha512-04740FGPBVPNLvuRaUxQAMYzkqf5nhFRCH8vY6qxzp7olgHivC/lzMICQ3opQptgJO/w9tQv+glHjYgj4cQYtA==","signatures":[{"sig":"MEYCIQDdvPuVG6UU10O8hUNbRfd3/pzX4mWhn1OrBBt1fvKgLgIhAOwumzkhW2rptMgi4ybNiHnOktw/b6ojq63lUwK3mvzo","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1971173},"main":"./src/index.js","types":"./typings/index.d.ts","engines":{"node":">=20.18"},"gitHead":"029641783b21d70e7e1bb21fdb375e1df678e3ae","scripts":{"all":"npm run build && npm publish","docs":"docgen --input 'src/**/*.js' --custom docs/index.json --output docs/main.json","lint":"eslint .","test":"npm run lint:all && npm run docs:test && npm run test:typescript && npm run test:examples && npm run test:unit && npm run test:smoke","build":"npm run lint:fix && npm run lint:typings:fix && npm run format && npm run docs","format":"prettier --write src/**/*.js typings/**/*.ts","fix:all":"npm run lint:fix && npm run lint:typings:fix && npm run format","lint:all":"npm run lint &&  npm run lint:typings","lint:fix":"eslint . --fix","docs:test":"docgen --input 'src/**/*.js' --custom docs/index.json","test:unit":"node --test test/*.test.js","test:smoke":"node -e \"require('./src')\"","lint:typings":"tslint typings/index.d.ts","test:examples":"find examples -name '*.js' -print0 | xargs -0 -n1 node --check","test:typescript":"tsc --noEmit && tsd","lint:typings:fix":"tslint typings/index.d.ts --fix"},"_npmUser":{"name":"magiquedev","email":"isolent@proton.me"},"repository":{"url":"git+https://github.com/altkit/discord.git","type":"git"},"_npmVersion":"11.11.1","description":"An unofficial Discord.js v14-compatible fork that preserves selfbot support","directories":{"lib":"src","test":"test"},"_nodeVersion":"25.8.2","dependencies":{"ws":"^8.21.1","tslib":"^2.6.3","otplib":"^12.0.1","qrcode":"^1.5.4","undici":"^6.27.0","tree-kill":"^1.2.2","werift-rtp":"^0.8.8","prism-media":"^1.3.5","fetch-cookie":"^3.2.0","find-process":"^2.1.1","tough-cookie":"^6.0.2","@discordjs/ws":"^1.2.3","@discordjs/rest":"^2.6.2","@discordjs/util":"^1.2.0","discord-api-types":"^0.38.49","@discordjs/builders":"^1.14.1","@sapphire/shapeshift":"^4.0.0","@discordjs/collection":"1.5.3","@discordjs/formatters":"^0.6.2","@sapphire/async-queue":"^1.5.5"},"_hasShrinkwrap":false,"devDependencies":{"tsd":"^0.32.0","eslint":"^8.57.1","tslint":"^6.1.3","dtslint":"^4.2.1","prettier":"^2.8.8","@types/ws":"^8.18.1","typescript":"~5.8.3","@types/node":"^22.10.7","@types/debug":"^4.1.13","@discordjs/docgen":"^0.12.1","eslint-plugin-import":"^2.32.0","eslint-config-prettier":"^8.8.0","eslint-plugin-prettier":"^4.2.1"},"discordJsVersion":"14.27.0","_npmOperationalInternal":{"tmp":"tmp/discord_4.0.0_1784298273762_0.2022630582321261","host":"s3://npm-registry-packages-npm-production"}},"4.0.1":{"name":"@altkit/discord","version":"4.0.1","keywords":["discord.js","discord.js v14","selfbot","selfbot v14","djs","api","bot","node","discord","client","discordapp"],"author":{"name":"aiko-chan-ai"},"license":"GPL-3.0-only","_id":"@altkit/discord@4.0.1","maintainers":[{"name":"magiquedev","email":"isolent@proton.me"}],"homepage":"https://github.com/altkit/discord#readme","bugs":{"url":"https://github.com/altkit/discord/issues"},"dist":{"shasum":"5aaf2d8e06afcada89eb951219c17c6c4d631430","tarball":"https://registry.npmjs.org/@altkit/discord/-/discord-4.0.1.tgz","fileCount":373,"integrity":"sha512-yAQ84atLYl8EQh6w/xdFBu2PiL5XcVbW3eZid+SaOL4ZEdRGmSHUZZZ/oPP5Gr7Fumu2kQy7x6v5CEQlK7p+fA==","signatures":[{"sig":"MEYCIQCv3xbI5FjoVBY27abjgh+JslIYQoo5kF1q8lWVRajJegIhAOxZnJmoYEngII4CMa/ZCwyYWkLEJDzXvvM5Ar96y/FK","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1971662},"main":"./src/index.js","types":"./typings/index.d.ts","engines":{"node":">=20.19"},"gitHead":"a19db3c4038f6f7c384ad01fbd0d961a22c08b1d","scripts":{"docs":"docgen --input 'src/**/*.js' --custom docs/index.json --output docs/main.json","lint":"eslint src test eslint.config.mjs docs/.vitepress/config.mjs","test":"npm run lint && npm run format:check && npm run docs:test && npm run test:typescript && npm run test:examples && npm run test:unit && npm run test:smoke","build":"npm run docs:build","format":"prettier --write \"src/**/*.js\" \"test/**/*.js\" \"typings/**/*.ts\" \"docs/**/*.md\" \"docs/.vitepress/**/*.mjs\"","fix:all":"npm run lint:fix && npm run format","docs:dev":"vitepress dev docs","lint:fix":"eslint . --fix","docs:test":"docgen --input 'src/**/*.js' --custom docs/index.json","test:unit":"node --test test/*.test.js","docs:build":"vitepress build docs","test:smoke":"node -e \"require('./src')\"","docs:preview":"vitepress preview docs","format:check":"prettier --check \"src/**/*.js\" \"test/**/*.js\" \"typings/**/*.ts\" \"docs/**/*.md\" \"docs/.vitepress/**/*.mjs\"","test:examples":"find examples -name '*.js' -print0 | xargs -0 -n1 node --check","prepublishOnly":"npm test","test:typescript":"tsc --noEmit && tsd"},"_npmUser":{"name":"magiquedev","email":"isolent@proton.me"},"repository":{"url":"git+https://github.com/altkit/discord.git","type":"git"},"_npmVersion":"11.11.1","description":"An unofficial Discord.js v14.27-compatible fork that preserves selfbot support","directories":{"lib":"src","test":"test"},"_nodeVersion":"25.8.2","dependencies":{"ws":"^8.21.1","tslib":"^2.6.3","otplib":"^12.0.1","qrcode":"^1.5.4","undici":"^6.27.0","tree-kill":"^1.2.2","werift-rtp":"^0.8.8","prism-media":"^1.3.5","fetch-cookie":"^3.2.0","find-process":"^2.1.1","tough-cookie":"^6.0.2","@discordjs/ws":"^1.2.3","@discordjs/rest":"^2.6.2","@discordjs/util":"^1.2.0","discord-api-types":"^0.38.49","@discordjs/builders":"^1.14.1","@sapphire/shapeshift":"^4.0.0","@discordjs/collection":"1.5.3","@discordjs/formatters":"^0.6.2","@sapphire/async-queue":"^1.5.5"},"_hasShrinkwrap":false,"devDependencies":{"tsd":"^0.33.0","eslint":"^10.7.0","globals":"^16.3.0","prettier":"^3.9.5","@types/ws":"^8.18.1","vitepress":"2.0.0-alpha.16","@eslint/js":"^10.0.1","typescript":"~5.9.3","@types/node":"^20.19.0","@discordjs/docgen":"^0.12.1","eslint-config-prettier":"^10.1.8"},"discordJsVersion":"14.27.0","_npmOperationalInternal":{"tmp":"tmp/discord_4.0.1_1784304708186_0.2579537769900673","host":"s3://npm-registry-packages-npm-production"}},"4.0.3":{"name":"@altkit/discord","version":"4.0.3","keywords":["discord.js","discord.js v14","selfbot","selfbot v14","djs","api","bot","node","discord","client","discordapp"],"author":{"name":"aiko-chan-ai"},"license":"GPL-3.0-only","_id":"@altkit/discord@4.0.3","maintainers":[{"name":"magiquedev","email":"isolent@proton.me"}],"homepage":"https://github.com/AltKit/discord#readme","bugs":{"url":"https://github.com/AltKit/discord/issues"},"dist":{"shasum":"43c406ab25fd769bac265e17875bae514cee746b","tarball":"https://registry.npmjs.org/@altkit/discord/-/discord-4.0.3.tgz","fileCount":373,"integrity":"sha512-s1TjlCQdotudQakbfrLhv+iYtVXS9ejWSMpm4o0HUBFchypPoaHAC+ss0tEPqk3fb4/1ez1R9k24MrT2MiWFVg==","signatures":[{"sig":"MEUCIHGWTFF/eTLS++xkfEfaLY/5xiP8skrj7ADKA9PHU1anAiEA33oAFVJkWaxFbvy3t3F1NTN7baL33glYMEehd4waw8o=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@altkit%2fdiscord@4.0.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":1972366},"main":"./src/index.js","types":"./typings/index.d.ts","engines":{"node":">=20.19"},"gitHead":"225aa9228699d6e1a5d5ca10dd01de2da24833e4","scripts":{"docs":"docgen --input 'src/**/*.js' --custom docs/index.json --output docs/main.json","lint":"eslint src test eslint.config.mjs docs/.vitepress/config.mjs","test":"npm run lint && npm run format:check && npm run docs:test && npm run test:typescript && npm run test:examples && npm run test:unit && npm run test:smoke","build":"npm run docs:build","format":"prettier --write \"src/**/*.js\" \"test/**/*.js\" \"typings/**/*.ts\" \"docs/**/*.md\" \"docs/.vitepress/**/*.mjs\"","fix:all":"npm run lint:fix && npm run format","docs:dev":"vitepress dev docs","lint:fix":"eslint . --fix","docs:test":"docgen --input 'src/**/*.js' --custom docs/index.json","test:unit":"node --test test/*.test.js","docs:build":"vitepress build docs","test:smoke":"node -e \"require('./src')\"","docs:verify":"node scripts/verify-docs.js","docs:preview":"vitepress preview docs","format:check":"prettier --check \"src/**/*.js\" \"test/**/*.js\" \"typings/**/*.ts\" \"docs/**/*.md\" \"docs/.vitepress/**/*.mjs\"","test:examples":"find examples -name '*.js' -print0 | xargs -0 -n1 node --check","prepublishOnly":"npm test","test:typescript":"tsc --noEmit && tsd"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f3da29e9-aaa6-44dc-8212-c009d59d61be"}},"repository":{"url":"git+https://github.com/AltKit/discord.git","type":"git"},"_npmVersion":"11.5.1","description":"An unofficial Discord.js v14.27-compatible fork for Discord API and Gateway v10 user-account workflows","directories":{"lib":"src","test":"test"},"_nodeVersion":"22.23.1","dependencies":{"ws":"^8.21.1","tslib":"^2.6.3","otplib":"^13.4.1","qrcode":"^1.5.4","undici":"^6.27.0","tree-kill":"^1.2.2","werift-rtp":"^0.8.8","prism-media":"^1.3.5","fetch-cookie":"^3.2.0","find-process":"^2.1.1","tough-cookie":"^6.0.2","@discordjs/ws":"^1.2.3","@discordjs/rest":"^2.6.2","@discordjs/util":"^1.2.0","discord-api-types":"^0.38.49","@discordjs/builders":"^1.14.1","@sapphire/shapeshift":"^4.0.0","@discordjs/collection":"1.5.3","@discordjs/formatters":"^0.6.2","@sapphire/async-queue":"^1.5.5"},"_hasShrinkwrap":false,"devDependencies":{"tsd":"^0.33.0","eslint":"^10.7.0","globals":"^16.3.0","prettier":"^3.9.5","@types/ws":"^8.18.1","vitepress":"2.0.0-alpha.16","@eslint/js":"^10.0.1","typescript":"~5.9.3","@types/node":"^20.19.0","@discordjs/docgen":"^0.12.1","eslint-config-prettier":"^10.1.8"},"discordJsVersion":"14.27.0","_npmOperationalInternal":{"tmp":"tmp/discord_4.0.3_1784307085437_0.8448754795345128","host":"s3://npm-registry-packages-npm-production"}},"4.0.4":{"name":"@altkit/discord","version":"4.0.4","keywords":["discord.js","discord.js v14","selfbot","selfbot v14","user-account","userbot","djs","api","node","discord","client","discordapp"],"author":{"name":"altkit"},"license":"GPL-3.0-only","_id":"@altkit/discord@4.0.4","maintainers":[{"name":"magiquedev","email":"isolent@proton.me"}],"homepage":"https://github.com/AltKit/discord#readme","bugs":{"url":"https://github.com/AltKit/discord/issues"},"dist":{"shasum":"52c2723f4cd2c77c82ae11d369c8b23839a2ffc5","tarball":"https://registry.npmjs.org/@altkit/discord/-/discord-4.0.4.tgz","fileCount":372,"integrity":"sha512-g8w+mrPz72c/4EYJ2jk7QW2xq+a96JJL8QD+PVatvS9PQnnBHF4tOiN5qHb2lhzrYktyePqTnAumLjuqM2liQA==","signatures":[{"sig":"MEYCIQD4BtypRE25aSUUaPNthIiilNonO0SCVP6THgZRItTo9wIhAKF69jb1MLRBxpwknlQa6M55v3eB26dNXXTrPGggea8S","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@altkit%2fdiscord@4.0.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":1980126},"main":"./src/index.js","types":"./typings/index.d.ts","engines":{"node":">=20.19"},"gitHead":"314bab2ad6b46bd478223589cd45d0c7fa27024a","scripts":{"docs":"docgen --input 'src/**/*.js' --custom docs/index.json --output docs/main.json","lint":"eslint src test eslint.config.mjs docs/.vitepress/config.mjs","test":"npm run lint && npm run format:check && npm run docs:test && npm run test:typescript && npm run test:examples && npm run test:unit && npm run test:smoke","build":"npm run docs:build","format":"prettier --write \"src/**/*.js\" \"test/**/*.js\" \"typings/**/*.ts\" \"docs/**/*.md\" \"docs/.vitepress/**/*.mjs\"","fix:all":"npm run lint:fix && npm run format","docs:dev":"vitepress dev docs","lint:fix":"eslint . --fix","docs:test":"docgen --input 'src/**/*.js' --custom docs/index.json","test:unit":"node --test test/*.test.js","docs:build":"vitepress build docs","test:smoke":"node -e \"require('./src')\"","docs:verify":"node scripts/verify-docs.js","docs:preview":"vitepress preview docs","format:check":"prettier --check \"src/**/*.js\" \"test/**/*.js\" \"typings/**/*.ts\" \"docs/**/*.md\" \"docs/.vitepress/**/*.mjs\"","test:examples":"find examples -name '*.js' -print0 | xargs -0 -n1 node --check","prepublishOnly":"npm test","test:typescript":"tsc --noEmit && tsd"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f3da29e9-aaa6-44dc-8212-c009d59d61be"}},"repository":{"url":"git+https://github.com/AltKit/discord.git","type":"git"},"_npmVersion":"11.5.1","description":"An unofficial Discord.js v14.27-compatible fork for Discord API and Gateway v10 user-account workflows","directories":{"lib":"src","test":"test"},"_nodeVersion":"22.23.1","dependencies":{"ws":"^8.21.1","tslib":"^2.6.3","otplib":"^13.4.1","qrcode":"^1.5.4","undici":"^6.27.0","tree-kill":"^1.2.2","werift-rtp":"^0.8.8","prism-media":"^1.3.5","fetch-cookie":"^3.2.0","find-process":"^2.1.1","tough-cookie":"^6.0.2","@discordjs/ws":"^1.2.3","@discordjs/rest":"^2.6.2","@discordjs/util":"^1.2.0","discord-api-types":"^0.38.49","@discordjs/builders":"^1.14.1","@sapphire/shapeshift":"^4.0.0","@discordjs/collection":"1.5.3","@discordjs/formatters":"^0.6.2","@sapphire/async-queue":"^1.5.5"},"_hasShrinkwrap":false,"devDependencies":{"tsd":"^0.33.0","eslint":"^10.7.0","globals":"^16.3.0","prettier":"^3.9.5","@types/ws":"^8.18.1","vitepress":"2.0.0-alpha.16","@eslint/js":"^10.0.1","typescript":"~5.9.3","@types/node":"^20.19.0","@discordjs/docgen":"^0.12.1","eslint-config-prettier":"^10.1.8"},"discordJsVersion":"14.27.0","_npmOperationalInternal":{"tmp":"tmp/discord_4.0.4_1784342532424_0.5247090392883462","host":"s3://npm-registry-packages-npm-production"}},"4.1.0":{"name":"@altkit/discord","version":"4.1.0","keywords":["discord.js","discord.js v14","selfbot","selfbot v14","user-account","userbot","djs","api","node","discord","client","discordapp"],"author":{"name":"altkit"},"license":"GPL-3.0-only","_id":"@altkit/discord@4.1.0","maintainers":[{"name":"magiquedev","email":"isolent@proton.me"}],"homepage":"https://github.com/AltKit/discord#readme","bugs":{"url":"https://github.com/AltKit/discord/issues"},"dist":{"shasum":"95497482c35fcb16d9016458d2ed065cd03b7e20","tarball":"https://registry.npmjs.org/@altkit/discord/-/discord-4.1.0.tgz","fileCount":374,"integrity":"sha512-1YCwJt3hoQIS2CWEqXvsA6JvTr7O2cchnj9cwA5/GTWeaHpnTk3CrzQDB2pWEfhRnn13gWLKoyjwSgf4nCMULw==","signatures":[{"sig":"MEQCIBzLnZvnRQutx47atsXOR37YsIFdaB+tcEzXdHv60eLaAiAZdzsO8bBBKbAJZSTqV3FVl9Q26chyDTua9mEt+pRLQQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@altkit%2fdiscord@4.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":2002317},"main":"./src/index.js","types":"./typings/index.d.ts","engines":{"node":">=20.19"},"gitHead":"71a4f9866d398d623f8d6f5c53cf96e21d3f82d4","scripts":{"docs":"docgen --input 'src/**/*.js' --custom docs/index.json --output docs/main.json","lint":"eslint src test eslint.config.mjs docs/.vitepress/config.mjs","test":"npm run lint && npm run format:check && npm run docs:test && npm run test:typescript && npm run test:examples && npm run test:unit && npm run test:smoke","build":"npm run docs:build","format":"prettier --write \"src/**/*.js\" \"test/**/*.js\" \"typings/**/*.ts\" \"docs/**/*.md\" \"docs/.vitepress/**/*.mjs\"","fix:all":"npm run lint:fix && npm run format","docs:dev":"vitepress dev docs","lint:fix":"eslint . --fix","docs:test":"docgen --input 'src/**/*.js' --custom docs/index.json","test:unit":"node --test test/*.test.js","docs:build":"vitepress build docs","test:smoke":"node -e \"require('./src')\"","docs:verify":"node scripts/verify-docs.js","docs:preview":"vitepress preview docs","format:check":"prettier --check \"src/**/*.js\" \"test/**/*.js\" \"typings/**/*.ts\" \"docs/**/*.md\" \"docs/.vitepress/**/*.mjs\"","test:examples":"find examples -name '*.js' -print0 | xargs -0 -n1 node --check","prepublishOnly":"npm test","test:typescript":"tsc --noEmit && tsd"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f3da29e9-aaa6-44dc-8212-c009d59d61be"}},"repository":{"url":"git+https://github.com/AltKit/discord.git","type":"git"},"_npmVersion":"11.5.1","description":"An unofficial Discord.js v14.27-compatible fork for Discord API and Gateway v10 user-account workflows","directories":{"lib":"src","test":"test"},"_nodeVersion":"22.23.1","dependencies":{"ws":"^8.21.1","tslib":"^2.6.3","otplib":"^13.4.1","qrcode":"^1.5.4","undici":"^7.28.0","tree-kill":"^1.2.2","werift-rtp":"^0.8.8","prism-media":"^1.3.5","fetch-cookie":"^3.2.0","find-process":"^2.1.1","tough-cookie":"^6.0.2","@discordjs/ws":"^1.2.3","@discordjs/rest":"^2.6.2","@discordjs/util":"^1.2.0","discord-api-types":"^0.38.49","@discordjs/builders":"^1.14.1","@sapphire/shapeshift":"^4.0.0","@discordjs/collection":"1.5.3","@discordjs/formatters":"^0.6.2","@sapphire/async-queue":"^1.5.5"},"_hasShrinkwrap":false,"devDependencies":{"tsd":"^0.33.0","eslint":"^10.7.0","globals":"^17.7.0","prettier":"^3.9.5","@types/ws":"^8.18.1","vitepress":"2.0.0-alpha.16","@eslint/js":"^10.0.1","typescript":"~5.9.3","@types/node":"^20.19.0","@discordjs/docgen":"^0.12.1","eslint-config-prettier":"^10.1.8"},"discordJsVersion":"14.27.0","_npmOperationalInternal":{"tmp":"tmp/discord_4.1.0_1784431440929_0.865302794720062","host":"s3://npm-registry-packages-npm-production"}},"4.2.0":{"name":"@altkit/discord","version":"4.2.0","discordJsVersion":"14.27.0","description":"An unofficial Discord.js v14.27-compatible fork for Discord API and Gateway v10 user-account workflows","main":"./src/index.js","types":"./typings/index.d.ts","scripts":{"test":"npm run lint && npm run format:check && npm run docs:test && npm run test:typescript && npm run test:examples && npm run test:unit && npm run test:smoke","fix:all":"npm run lint:fix && npm run format","test:typescript":"tsc --noEmit && tsd","lint":"eslint src test eslint.config.mjs docs/.vitepress/config.mjs","lint:fix":"eslint . --fix","format":"prettier --write \"src/**/*.js\" \"test/**/*.js\" \"typings/**/*.ts\" \"docs/**/*.md\" \"docs/.vitepress/**/*.mjs\"","format:check":"prettier --check \"src/**/*.js\" \"test/**/*.js\" \"typings/**/*.ts\" \"docs/**/*.md\" \"docs/.vitepress/**/*.mjs\"","docs":"docgen --input 'src/**/*.js' --custom docs/index.json --output docs/main.json","docs:verify":"node scripts/verify-docs.js","docs:test":"docgen --input 'src/**/*.js' --custom docs/index.json","docs:dev":"vitepress dev docs","docs:build":"vitepress build docs","docs:preview":"vitepress preview docs","test:examples":"find examples -name '*.js' -print0 | xargs -0 -n1 node --check","test:unit":"node --test test/*.test.js","test:smoke":"node -e \"require('./src')\"","build":"npm run docs:build","prepublishOnly":"npm test"},"directories":{"lib":"src","test":"test"},"repository":{"type":"git","url":"git+https://github.com/AltKit/discord.git"},"keywords":["discord.js","discord.js v14","selfbot","selfbot v14","user-account","userbot","djs","api","node","discord","client","discordapp"],"author":{"name":"altkit"},"license":"GPL-3.0-only","bugs":{"url":"https://github.com/AltKit/discord/issues"},"homepage":"https://github.com/AltKit/discord#readme","dependencies":{"@discordjs/builders":"^1.14.1","@discordjs/collection":"1.5.3","@discordjs/formatters":"^0.6.2","@discordjs/rest":"^2.6.3","@discordjs/util":"^1.2.0","@sapphire/async-queue":"^1.5.5","@sapphire/shapeshift":"^4.0.0","discord-api-types":"^0.38.52","fetch-cookie":"^3.2.0","find-process":"^2.1.1","otplib":"^13.4.1","prism-media":"^1.3.5","qrcode":"^1.5.4","tough-cookie":"^6.0.2","tree-kill":"^1.2.2","tslib":"^2.6.3","undici":"^7.29.0","werift-rtp":"^0.8.9","ws":"^8.21.1"},"engines":{"node":">=20.19"},"devDependencies":{"@discordjs/docgen":"^0.12.1","@eslint/js":"^10.0.1","@types/node":"^20.19.0","@types/ws":"^8.18.1","eslint":"^10.7.0","eslint-config-prettier":"^10.1.8","globals":"^17.7.0","prettier":"^3.9.5","tsd":"^0.33.0","typescript":"~5.9.3","vitepress":"2.0.0-alpha.16"},"_id":"@altkit/discord@4.2.0","gitHead":"5ac2ad44bff2aab58a1db21440386ca5cab0b0ab","_nodeVersion":"22.23.1","_npmVersion":"11.5.1","dist":{"integrity":"sha512-ZzUQQjo/7/yxoTQWMUT5WZwF2ISPBdG/vDBmWvm7s+PRcqWLGqQpN8wRzHmcKjehCITujU3djJ68K1qwFK/Hsg==","shasum":"2886e97953a1355f15fdc6d8e89ea7759fb3beb5","tarball":"https://registry.npmjs.org/@altkit/discord/-/discord-4.2.0.tgz","fileCount":374,"unpackedSize":2023797,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@altkit%2fdiscord@4.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQC3Zz3kDMVqwCEsO10GqDGYaWz+5T5MoXMFl53GpsihjgIgTklddLYIJ8ZEgACxB06tVIjyDnZYlw5AbU3fZ84o3TI="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f3da29e9-aaa6-44dc-8212-c009d59d61be"}},"maintainers":[{"name":"magiquedev","email":"isolent@proton.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/discord_4.2.0_1786519660023_0.8417395338922977"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-17T14:24:33.602Z","modified":"2026-08-12T07:27:40.546Z","4.0.0":"2026-07-17T14:24:33.947Z","4.0.1":"2026-07-17T16:11:48.428Z","4.0.3":"2026-07-17T16:51:25.612Z","4.0.4":"2026-07-18T02:42:12.648Z","4.1.0":"2026-07-19T03:24:01.118Z","4.2.0":"2026-08-12T07:27:40.180Z"},"bugs":{"url":"https://github.com/AltKit/discord/issues"},"author":{"name":"altkit"},"license":"GPL-3.0-only","homepage":"https://github.com/AltKit/discord#readme","keywords":["discord.js","discord.js v14","selfbot","selfbot v14","user-account","userbot","djs","api","node","discord","client","discordapp"],"repository":{"type":"git","url":"git+https://github.com/AltKit/discord.git"},"description":"An unofficial Discord.js v14.27-compatible fork for Discord API and Gateway v10 user-account workflows","maintainers":[{"name":"magiquedev","email":"isolent@proton.me"}],"readme":"# Altkit Discord\n\nAn unofficial, user-account-only Discord.js v14.27-compatible library for Discord API v10 and Gateway v10.\n\n[![npm](https://img.shields.io/npm/v/%40altkit%2Fdiscord.svg)](https://www.npmjs.com/package/@altkit/discord)\n[![CI](https://github.com/altkit/discord/actions/workflows/ci.yml/badge.svg)](https://github.com/altkit/discord/actions/workflows/ci.yml)\n[![Node.js](https://img.shields.io/badge/Node.js-%3E%3D20.19-339933)](https://nodejs.org/)\n[![Discord.js compatibility](https://img.shields.io/badge/discord.js-14.27.0-5865f2)](https://github.com/discordjs/discord.js/releases/tag/14.27.0)\n[![License](https://img.shields.io/badge/license-GPL--3.0--only-blue.svg)](LICENSE)\n\n> [!CAUTION]\n> Automating a normal Discord user account violates Discord's Terms of Service and may result in account termination.\n> Altkit Discord is unofficial, is not supported by Discord, and is used entirely at your own risk.\n\n## Overview\n\nAltkit Discord adapts the familiar Discord.js programming model to user-account workflows while retaining account-specific\nfeatures from the original `discord.js-selfbot-v13` project. Version 4 targets the Discord.js 14.27 public surface where it\napplies to this fork and defaults REST and Gateway traffic to Discord API v10.\n\n|                         | Support                                |\n| ----------------------- | -------------------------------------- |\n| Package                 | `@altkit/discord`                      |\n| Discord.js surface      | `14.27.0`                              |\n| Discord API and Gateway | `v10`                                  |\n| Node.js                 | `20.19.0` or newer                     |\n| Runtime module format   | CommonJS, with TypeScript declarations |\n| Account type            | Discord user accounts only             |\n| License                 | GPL-3.0-only                           |\n\nBot tokens, bot Gateway intents, application-command registration, interaction callbacks, and multi-process sharding are\nintentionally unsupported. APIs that depend on those workflows fail locally instead of silently attempting a bot request.\nBuilders and Discord API types may still be exported for payload compatibility; an export does not make its bot-only\nendpoint available to user accounts.\n\nRead the [v4 migration guide](docs/migrate.md) before upgrading an existing v3 application.\n\n## Install\n\n```sh\nnpm install @altkit/discord\n```\n\nThe package includes its own TypeScript declarations. A separate `@types` package is not required.\n\n## Quick start\n\nCreate `index.js`:\n\n```js\n'use strict';\n\nconst { Client, Events } = require('@altkit/discord');\n\nconst client = new Client();\n\nclient.once(Events.ClientReady, readyClient => {\n  console.log(`${readyClient.user.tag} is ready`);\n});\n\nclient.on(Events.MessageCreate, async message => {\n  if (message.author.id === client.user.id && message.content === '!ping') {\n    await message.reply('Pong!');\n  }\n});\n\nclient.login(process.env.DISCORD_TOKEN).catch(error => {\n  console.error('Login failed:', error.message);\n  process.exitCode = 1;\n});\n```\n\nCreate a local `.env` file that is excluded from version control:\n\n```dotenv\nDISCORD_TOKEN=\n```\n\nThen use Node's built-in environment-file loader:\n\n```sh\nnode --env-file=.env index.js\n```\n\nNever hard-code, commit, log, or paste an account token into an issue. This project intentionally does not document token\nextraction. Rotate the token immediately if it may have been exposed.\n\n## What v4 includes\n\n- Discord API v10 REST routes, payloads, rate-limit buckets, scopes, and retry behavior\n- Gateway v10 events, partials, polls, voice-channel status, and voice-session start times\n- Messages, embeds, attachments, explicit spoiler metadata, polls, and prepared Ogg/Opus voice messages\n- Full v10 channel flags, including spoiler-channel creation and inspection through `ChannelFlags`\n- File-type restrictions on file upload modal components via `fileTypes` and `setFileTypes()`\n- Modern aliases such as `AttachmentBuilder`, `BaseChannel`, `Events`, `Partials`, and `PermissionsBitField`\n- Current application flag precision through `Application#flagsNew`\n- A `Constants.APIErrors` table that mirrors the current v10 JSON error code reference\n- Current modal component response shapes used by user-side command invocation\n- Invite acceptance, community invite roles and target-user lists, guild discovery, and user-app installation\n- Relationships, account settings, sessions, custom status, rich presence, and activity instances\n- Voice connections, audio/video dispatch, receive streams, recording helpers, and `@discordjs/voice` adapters\n- Webhook clients and compatible Discord.js builders, formatters, utilities, and Discord API v10 enums\n- Optional captcha callbacks and TOTP handling for eligible authentication challenges\n\nDiscord permissions, experiments, verification requirements, and account eligibility still determine whether a particular\noperation succeeds. Undocumented account endpoints can change independently of this project.\n\n## API v10 transport behavior\n\nThe REST layer discovers Discord bucket hashes and separates limits by HTTP method and major resource. It accepts rate-limit\ntiming from current headers or response payloads and does not automatically replay ambiguous `POST` or `PATCH` failures,\nbecause Discord may already have applied those requests.\n\nREST, Gateway, voice, and remote-auth connections use TLS 1.2 or newer by default. Most applications should keep the secure\ndefaults. Custom destination trust can be configured separately for REST and WebSocket traffic:\n\n```js\nconst client = new Client({\n  http: {\n    tls: { ca: process.env.REST_CA_CERT },\n  },\n  ws: {\n    tls: { ca: process.env.GATEWAY_CA_CERT },\n  },\n});\n```\n\nProxy destination TLS and HTTPS-proxy TLS use separate `requestTls` and `proxyTls` options. See the\n[client configuration guide](docs/guide/client-configuration.md#tls-configuration) for precedence rules. Do not disable\ncertificate verification in production.\n\n## Compatibility\n\nSelected legacy names remain available so v3 applications can migrate incrementally:\n\n| Legacy name         | Preferred compatible name |\n| ------------------- | ------------------------- |\n| `MessageAttachment` | `AttachmentBuilder`       |\n| `Channel`           | `BaseChannel`             |\n| `Intents`           | `IntentsBitField`         |\n| `MessageFlags`      | `MessageFlagsBitField`    |\n| `Permissions`       | `PermissionsBitField`     |\n| `UserFlags`         | `UserFlagsBitField`       |\n\nRuntime metadata makes the package boundary inspectable:\n\n```js\nconst { accountType, discordJsVersion, supportsBotAccounts, version } = require('@altkit/discord');\n\nconsole.log({ version, discordJsVersion, accountType, supportsBotAccounts });\n```\n\nAltkit aims for source-level familiarity, not perfect behavioral identity with upstream Discord.js. In particular,\nupstream examples for deploying application commands or handling bot-owned buttons, select menus, and modals do not apply.\n`sendSlash()` invokes commands exposed by installed applications; it does not register them.\n\n## Documentation\n\n- [Documentation website](https://altkit.github.io/discord/)\n- [Getting started](docs/guide/getting-started.md)\n- [Client and TLS configuration](docs/guide/client-configuration.md)\n- [Compatibility guide](docs/guide/compatibility.md)\n- [REST and rate limits](docs/guide/rest-and-rate-limits.md)\n- [Security guide](docs/guide/security.md)\n- [Migration guide](docs/migrate.md)\n- [Runnable examples](examples/README.md)\n- [Developer and redistribution guide](docs/devguide.md)\n\nThe examples use `DISCORD_TOKEN` and feature-specific IDs from the environment. Copy `.env.example` to `.env`, populate only\nthe values required by the selected example, and read its prerequisites before running it.\n\n## Security\n\n- Keep tokens, TOTP secrets, proxy credentials, cookies, and custom certificates outside source control.\n- Treat third-party captcha solvers, proxies, media tools, and modified package distributions as separate trust boundaries.\n- Keep TLS certificate verification enabled and install only `@altkit/discord` from a source you trust.\n- Remove credentials and sensitive request data from bug reports, logs, screenshots, and reproductions.\n- Do not use client-identification values or headers to evade Discord, Cloudflare, rate limits, or account restrictions.\n\nSee the [security guide](docs/guide/security.md) for deployment and incident-response guidance.\n\n## Development\n\nInstall dependencies and run the complete validation pipeline:\n\n```sh\nnpm install\nnpm test\nnpm run docs:build\n```\n\n`npm test` runs linting, formatting checks, documentation parsing, TypeScript and `tsd`, example syntax checks, unit tests,\nand a package smoke test. Keep runtime changes, declarations, documentation, generated API data, and examples synchronized.\n\nFor local documentation work:\n\n```sh\nnpm run docs\nnpm run docs:dev\n```\n\nBug reports should include the Altkit Discord version, Node.js version, a minimal reproduction with all secrets removed,\nand the relevant error or redacted debug output.\n\n## License and credits\n\nAltkit Discord is licensed under the [GNU General Public License v3.0](LICENSE). It is based on\n[discord.js](https://github.com/discordjs/discord.js) and continues the original\n[discord.js-selfbot-v13](https://github.com/aiko-chan-ai/discord.js-selfbot-v13) project. Current development lives in\n[altkit/discord](https://github.com/altkit/discord).\n","readmeFilename":"README.md"}