API v9, edit document + readme

Request by github.com/dolfies
This commit is contained in:
March 7th 2022-04-03 15:20:39 +07:00
parent fe8d9786f0
commit 3688622120
4 changed files with 38 additions and 5 deletions

View File

@ -1,6 +1,24 @@
# Discord.js Selfbot v13 # Discord.js Selfbot v13
- Install: <strong>```npm i discord.js-selfbot-v13@latest```</strong> - Install: <strong>```npm i discord.js-selfbot-v13@latest```</strong>
# <strong>[Risky actions](https://github.com/Merubokkusu/Discord-S.C.U.M/issues/66)</strong>
## 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 ## Client Settings
<details> <details>
<summary><strong>Click to show</strong></summary> <summary><strong>Click to show</strong></summary>

View File

@ -14,7 +14,7 @@
## About ## 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.
<div align="center"> <div align="center">
@ -27,6 +27,21 @@
### <strong>I don't take any responsibility for blocked Discord accounts that used this module.</strong> ### <strong>I don't take any responsibility for blocked Discord accounts that used this module.</strong>
### <strong>Using this on a user account is prohibited by the [Discord TOS](https://discord.com/terms) and can lead to the account block.</strong> ### <strong>Using this on a user account is prohibited by the [Discord TOS](https://discord.com/terms) and can lead to the account block.</strong>
### <strong>[Feature + Example Code](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/DOCUMENT.md)</strong>
### <strong>[Risky actions](https://github.com/Merubokkusu/Discord-S.C.U.M/issues/66)</strong>
## 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 ## Installation
**Node.js 16.6.0 or newer is required** **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, ... - And the people who submitted the issue, colab, ...
## <strong><img src="https://cdn.discordapp.com/attachments/820557032016969751/952436539118456882/flag-vietnam_1f1fb-1f1f3.png" alt="." width="20" height="20"/> Vietnamese</strong> ## <strong><img src="https://cdn.discordapp.com/attachments/820557032016969751/952436539118456882/flag-vietnam_1f1fb-1f1f3.png" alt="." width="20" height="20"/> Vietnamese</strong>
- 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 =)) - 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 =))

View File

@ -1,6 +1,6 @@
{ {
"name": "discord.js-selfbot-v13", "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]", "description": "A unofficial discord.js fork for creating selfbots [Based on discord.js v13]",
"main": "./src/index.js", "main": "./src/index.js",
"types": "./typings/index.d.ts", "types": "./typings/index.d.ts",

View File

@ -171,7 +171,7 @@ class Options extends null {
$browser: 'Chrome', $browser: 'Chrome',
$device: 'ASUS ROG Phone 5', $device: 'ASUS ROG Phone 5',
}, },
version: 10, version: 9,
}, },
http: { http: {
headers: { 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', '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: {}, agent: {},
version: 10, version: 9,
api: 'https://discord.com/api', api: 'https://discord.com/api',
cdn: 'https://cdn.discordapp.com', cdn: 'https://cdn.discordapp.com',
invite: 'https://discord.gg', invite: 'https://discord.gg',