Skip to content

Commit

Permalink
1.3.1
Browse files Browse the repository at this point in the history
- Update Document
- Fix WebEmbed
- Fix MessagePayload
- Clear warn "Accessing non-existent property inside a circular dependency" (Pull #26)
  • Loading branch information
aiko-chan-ai committed Apr 11, 2022
1 parent 5caadfe commit 8688dba
Show file tree
Hide file tree
Showing 10 changed files with 365 additions and 283 deletions.
5 changes: 5 additions & 0 deletions DOCUMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
# <strong>[Risky actions](https://github.com/Merubokkusu/Discord-S.C.U.M/issues/66)</strong>

# Quick links
- [<strong>ClientOption</strong>](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Document/ClientOption.md)
- [<strong>HTTPOption</strong>](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Document/HTTPOption.md)
- [<strong>Guild</strong>](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Document/Guild.md)
- [<strong>Message</strong>](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Document/Message.md)
- [<strong>User</strong>](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Document/User.md)

## More features

Expand Down
14 changes: 14 additions & 0 deletions Document/ClientOption.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,22 @@
# Quick Links
- [Client Option](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Document/ClientOption.md#client-settings)
- [Client Functions](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Document/ClientOption.md#client-functions)

## Client Settings
```js
new Client({
checkUpdate: true, // Check Package Update (Bot Ready) [Enable Default]
readyStatus: false, // Set Custom Status sync from Account (Bot Ready) [Disable Default]
autoCookie: true, // Auto added Cookie and Fingerprint [Enable Default](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/DOCUMENT.md#http-options)
})
```

## Client Functions
- Update Cookie and Fingerprint
```js
client.updateCookie(): Promise<void>
```
- Reddem Nitro
```js
client.reddemNitro('code'): Promise<void>
```
19 changes: 19 additions & 0 deletions Document/Guild.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Quick Links:
- [Set Guild Folder and Position](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Document/Guild.md#discord-guild-set-position)
- [DM group](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Document/Guild.md#group-dm)
- [Join Guild](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Document/Guild.md#join-guild-using-invite)
- [Community](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Document/Guild.md#set-community))

## Discord Guild set position
<details>
<summary><strong>Click to show</strong></summary>
Expand Down Expand Up @@ -64,3 +70,16 @@ await client.fetchInvite('code').then(async invite => {

<strong>But if you are blocked by HCaptcha, this will not work</strong>
</details>

## Set Community
<details>
<summary>Click to show</summary>

```js
await guild.setCommunity(stats: boolean, publicUpdatesChannel: TextChannelResolvable, rulesChannel: TextChannelResolvable, reason?: string): Promise<Guild>;
// Enable with default
await guild.setCommunity(true);
// Disable
await guild.setCommunity(false);
```
</details>
7 changes: 1 addition & 6 deletions Document/HTTPOption.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## HTTP options:

- Change API v9 to v10
```js
/* If you want to change the API version from v9 to v10, here are the instructions */
const { Client } = require('discord.js-selfbot-v13');
Expand All @@ -14,9 +14,4 @@ const client = new Client({
}
}
});
/* Discord fingerprint ??? idk ... */
/**
* const { data } = await axios.get('https://discord.com/api/v9/experiments');
* client.options.http.header['x-fingerprint'] = data.fingerprint
*/
```
7 changes: 6 additions & 1 deletion Document/Message.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Quick Links:
- [Interaction](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Document/Message.md#interaction)
- [Embed](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Document/Message.md#messageembed-)

## Interaction
<details>
<summary>Button Click</summary>
Expand Down Expand Up @@ -86,8 +90,9 @@ message.channel.send({ content: `Hello world`, embeds: [w] }) // Patched :)

```
### Features & Issues
- No Timestamp, Footer, Thumbnail (but embed video, thumbnail working), Fields, Author iconURL
- No Timestamp, Footer, Fields, Author iconURL
- Video with Embed working
- Can only choose between image and thumbnail
- Description limit 350 characters
- If you use hidden mode you must make sure your custom content is less than 1000 characters without nitro (because hidden mode uses 1000 characters + URL)

Expand Down
19 changes: 9 additions & 10 deletions Document/User.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# Quick Links:
- [Setting](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Document/User.md#user-settings)
- [User Info](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Document/User.md#discord-user-info)
- [Relationship](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Document/User.md#discord-user-friend--blocked)
- [Rich Presence](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Document/User.md#custom-status-and-rpc)
- [Other](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Document/User.md#user--clientuser-method)

## User Settings
<details>
<summary><strong>Click to show</strong></summary>
Expand Down Expand Up @@ -221,15 +228,7 @@ await client.user.setPassword('old password', 'new password');
await client.user.disableAccount('password');
// Delete Account [WARNING] Cannot be changed once used!
await client.user.deleteAccount('password');
```
</details>


## Reddem Nitro ?
<details>
<summary>Click to show</summary>

```js
// Reddem Nitro
await client.reddemNitro('code')
```
</details>
</details>
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "discord.js-selfbot-v13",
"version": "1.3.0",
"version": "1.3.1",
"description": "A unofficial discord.js fork for creating selfbots [Based on discord.js v13]",
"main": "./src/index.js",
"types": "./typings/index.d.ts",
Expand Down
1 change: 1 addition & 0 deletions src/structures/MessagePayload.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ class MessagePayload {
this.options.embeds = this.options.embeds.filter(e => e instanceof MessageEmbed);

if (webembeds.length > 0) {
if (!content) content = '';
// add hidden embed link
content += `\n${WebEmbed.hiddenEmbed} \n`;
if (webembeds.length > 1) {
Expand Down
Loading

0 comments on commit 8688dba

Please sign in to comment.