From 368862212073845a16a1f66cb3cfa743bf694581 Mon Sep 17 00:00:00 2001 From: March 7th <71698422+aiko-chan-ai@users.noreply.github.com> Date: Sun, 3 Apr 2022 15:20:39 +0700 Subject: [PATCH] API v9, edit document + readme Request by github.com/dolfies --- DOCUMENT.md | 18 ++++++++++++++++++ README.md | 19 +++++++++++++++++-- package.json | 2 +- src/util/Options.js | 4 ++-- 4 files changed, 38 insertions(+), 5 deletions(-) diff --git a/DOCUMENT.md b/DOCUMENT.md index dc441e6..60cbacc 100644 --- a/DOCUMENT.md +++ b/DOCUMENT.md @@ -1,6 +1,24 @@ # Discord.js Selfbot v13 - Install: ```npm i discord.js-selfbot-v13@latest``` +# [Risky actions](https://github.com/Merubokkusu/Discord-S.C.U.M/issues/66) + +## Change log: + +```js +/* If you want to change the API version from v9 to v10, here are the instructions */ +const { Client } = require('discord.js-selfbot-v13'); +const client = new Client({ + ws: { + version: 10 + }, + http: { + version: 10 + } +}); + +``` + ## Client Settings
Click to show diff --git a/README.md b/README.md index 6aac130..243b673 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ ## About -- discord.js-selfbot-v13 is a [Node.js](https://nodejs.org) module that allows user accounts to interact with the Discord API v10. +- discord.js-selfbot-v13 is a [Node.js](https://nodejs.org) module that allows user accounts to interact with the Discord API v9.
@@ -27,6 +27,21 @@ ### I don't take any responsibility for blocked Discord accounts that used this module. ### Using this on a user account is prohibited by the [Discord TOS](https://discord.com/terms) and can lead to the account block. +### [Feature + Example Code](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/DOCUMENT.md) +### [Risky actions](https://github.com/Merubokkusu/Discord-S.C.U.M/issues/66) + +## Checklist +- [x] Send + receive messages with Attachment, Embed (WebEmbed), etc. +- [x] Setting Discord App (Missing a lot of functions) +- [X] Requests (add friends, join guilds, etc.) +- [X] Profile Editing (Name, Status, Avatar, Bio, Rich-Presence, etc.) +- [X] Interactions (slash commands, buttons, etc.) +- [X] Voice Channel (Join, Leave, Speak, etc.) +- [ ] Improve documentation (maybe) +- [ ] Add more guild http api wraps +- [ ] Audio / Video call +- [ ] Everything + ## Installation **Node.js 16.6.0 or newer is required** @@ -97,4 +112,4 @@ Contact me in Discord: [Shiraori#1782](https://discord.com/users/721746046543331 - And the people who submitted the issue, colab, ... ## . Vietnamese -- Tóm lại là module này dùng Discord.js v13 , API v10 nên chưa chết sớm đâu, cứ dùng đi =)) \ No newline at end of file +- Tóm lại là module này dùng Discord.js v13 , API v19 nên chưa chết sớm đâu, cứ dùng đi =)) \ No newline at end of file diff --git a/package.json b/package.json index 6a1135d..2db673b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "discord.js-selfbot-v13", - "version": "1.2.7", + "version": "1.2.8", "description": "A unofficial discord.js fork for creating selfbots [Based on discord.js v13]", "main": "./src/index.js", "types": "./typings/index.d.ts", diff --git a/src/util/Options.js b/src/util/Options.js index f7f9af9..18ae24b 100644 --- a/src/util/Options.js +++ b/src/util/Options.js @@ -171,7 +171,7 @@ class Options extends null { $browser: 'Chrome', $device: 'ASUS ROG Phone 5', }, - version: 10, + version: 9, }, http: { headers: { @@ -194,7 +194,7 @@ class Options extends null { 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36', }, agent: {}, - version: 10, + version: 9, api: 'https://discord.com/api', cdn: 'https://cdn.discordapp.com', invite: 'https://discord.gg',