djs-selfbot-v13 3.1.6 → 3.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +4 -16
- package/package.json +1 -23
- package/src/managers/ChannelManager.js +1 -0
- package/src/structures/Message.js +7 -1
package/LICENSE
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
GNU GENERAL PUBLIC LICENSE
|
|
2
2
|
Version 3, 29 June 2007
|
|
3
3
|
|
|
4
|
-
Copyright (C) 2022 aiko-chan-ai and discordjs
|
|
4
|
+
Copyright (C) 2022 aiko-chan-ai and discordjs and 002-sans
|
|
5
5
|
Everyone is permitted to copy and distribute verbatim copies
|
|
6
6
|
of this license document, but changing it is not allowed.
|
|
7
7
|
|
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
## About
|
|
9
9
|
|
|
10
|
-
<strong>Welcome to `djs-selfbot-v13
|
|
10
|
+
<strong>Welcome to `djs-selfbot-v13`, based on `discord.js@13.17`</strong>
|
|
11
11
|
|
|
12
12
|
- djs-selfbot-v13 is a [Node.js](https://nodejs.org) module that allows user accounts to interact with the Discord API v9.
|
|
13
13
|
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
- [X] Interactions: Slash Commands, Buttons, Menu, Modal
|
|
39
39
|
- [X] Captcha Handler (2captcha, capmonster, custom)
|
|
40
40
|
- [X] Documentation
|
|
41
|
-
- [x] Voice &
|
|
41
|
+
- [x] Voice & Video stream
|
|
42
42
|
- [ ] Everything
|
|
43
43
|
|
|
44
44
|
## Installation
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
> Recommended Node.js version: 18+ (LTS)
|
|
49
49
|
|
|
50
50
|
```sh-session
|
|
51
|
-
npm install
|
|
51
|
+
npm install djs-selfbot-v13
|
|
52
52
|
```
|
|
53
53
|
|
|
54
54
|
## Example
|
|
@@ -102,16 +102,4 @@ Github Discussion: [Here](https://github.com/aiko-chan-ai/discord.js-selfbot-v13
|
|
|
102
102
|
## Credits
|
|
103
103
|
- [Discord.js](https://github.com/discordjs/discord.js)
|
|
104
104
|
|
|
105
|
-
## <strong><img src="https://cdn.discordapp.com/attachments/820557032016969751/952436539118456882/flag-vietnam_1f1fb-1f1f3.png" alt="." width="20" height="20"/> Other project(s)
|
|
106
|
-
|
|
107
|
-
- 📘 [***aiko-chan-ai/DiscordBotClient***](https://github.com/aiko-chan-ai/DiscordBotClient) <br/>
|
|
108
|
-
A patched version of discord, with bot login support
|
|
109
|
-
- 📕 [***aiko-chan-ai/Discord-Markdown***](https://github.com/aiko-chan-ai/Discord-Markdown) <br/>
|
|
110
|
-
Better Markdown to text chat Discord.
|
|
111
|
-
|
|
112
|
-
## Star History
|
|
113
|
-
|
|
114
|
-
[](https://star-history.com/#aiko-chan-ai/discord.js-selfbot-v13&Date)
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
# From Github with love 💕
|
|
105
|
+
## <strong><img src="https://cdn.discordapp.com/attachments/820557032016969751/952436539118456882/flag-vietnam_1f1fb-1f1f3.png" alt="." width="20" height="20"/> Other project(s)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "djs-selfbot-v13",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.8",
|
|
4
4
|
"description": "A unofficial discord.js fork for creating selfbots [Based on discord.js v13]",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"types": "./typings/index.d.ts",
|
|
@@ -27,29 +27,7 @@
|
|
|
27
27
|
"lib": "src",
|
|
28
28
|
"test": "test"
|
|
29
29
|
},
|
|
30
|
-
"repository": {
|
|
31
|
-
"type": "git",
|
|
32
|
-
"url": "git+https://github.com/aiko-chan-ai/discord.js-selfbot-v13.git"
|
|
33
|
-
},
|
|
34
|
-
"keywords": [
|
|
35
|
-
"discord.js",
|
|
36
|
-
"discord.js v13",
|
|
37
|
-
"selfbot",
|
|
38
|
-
"selfbot v13",
|
|
39
|
-
"djs",
|
|
40
|
-
"api",
|
|
41
|
-
"bot",
|
|
42
|
-
"node",
|
|
43
|
-
"discord",
|
|
44
|
-
"client",
|
|
45
|
-
"discordapp"
|
|
46
|
-
],
|
|
47
|
-
"author": "aiko-chan-ai",
|
|
48
30
|
"license": "GNU General Public License v3.0",
|
|
49
|
-
"bugs": {
|
|
50
|
-
"url": "https://github.com/aiko-chan-ai/discord.js-selfbot-v13/issues"
|
|
51
|
-
},
|
|
52
|
-
"homepage": "https://github.com/aiko-chan-ai/discord.js-selfbot-v13#readme",
|
|
53
31
|
"dependencies": {
|
|
54
32
|
"@aikochan2k6/qrcode-terminal": "^0.12.1",
|
|
55
33
|
"@discordjs/builders": "^1.6.3",
|
|
@@ -127,6 +127,7 @@ class ChannelManager extends CachedManager {
|
|
|
127
127
|
recipients = recipients
|
|
128
128
|
.map(r => this.client.users.resolveId(r))
|
|
129
129
|
.filter(r => r && this.client.relationships.cache.get(r) == RelationshipTypes.FRIEND);
|
|
130
|
+
if (recipients.length < 1 || recipients.length > 9) throw new Error('Invalid Users length (1 - 9)');
|
|
130
131
|
const data = await this.client.api.users['@me'].channels.post({
|
|
131
132
|
data: { recipients },
|
|
132
133
|
});
|
|
@@ -1179,7 +1179,13 @@ class Message extends Base {
|
|
|
1179
1179
|
return this.client.api.channels[this.channelId].messages[this.id].ack.post({
|
|
1180
1180
|
data: {
|
|
1181
1181
|
manual: true,
|
|
1182
|
-
mention_count:
|
|
1182
|
+
mention_count:
|
|
1183
|
+
this.mentions.everyone ||
|
|
1184
|
+
this.mentions.repliedUser?.id === this.client.user.id ||
|
|
1185
|
+
this.mentions.users.has(this.client.user.id) ||
|
|
1186
|
+
(this.guildId && this.mentions.roles.some(r => this.guild.members.me._roles?.includes(r.id)))
|
|
1187
|
+
? 1
|
|
1188
|
+
: 1,
|
|
1183
1189
|
},
|
|
1184
1190
|
});
|
|
1185
1191
|
}
|