djs-selfbot-v13 3.1.7 → 3.2.2
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/README.md +18 -35
- package/package.json +85 -100
- package/src/client/BaseClient.js +3 -4
- package/src/client/Client.js +249 -530
- package/src/client/actions/Action.js +18 -13
- package/src/client/actions/ActionsManager.js +7 -1
- package/src/client/actions/AutoModerationActionExecution.js +1 -0
- package/src/client/actions/AutoModerationRuleCreate.js +1 -0
- package/src/client/actions/AutoModerationRuleDelete.js +1 -0
- package/src/client/actions/AutoModerationRuleUpdate.js +1 -0
- package/src/client/actions/GuildMemberRemove.js +0 -1
- package/src/client/actions/GuildMemberUpdate.js +0 -1
- package/src/client/actions/MessageCreate.js +0 -4
- package/src/client/actions/PresenceUpdate.js +17 -16
- package/src/client/websocket/WebSocketManager.js +11 -31
- package/src/client/websocket/WebSocketShard.js +39 -38
- package/src/client/websocket/handlers/CALL_CREATE.js +3 -3
- package/src/client/websocket/handlers/CALL_DELETE.js +2 -2
- package/src/client/websocket/handlers/CALL_UPDATE.js +2 -2
- package/src/client/websocket/handlers/CHANNEL_RECIPIENT_ADD.js +16 -13
- package/src/client/websocket/handlers/CHANNEL_RECIPIENT_REMOVE.js +11 -11
- package/src/client/websocket/handlers/GUILD_CREATE.js +19 -13
- package/src/client/websocket/handlers/GUILD_MEMBER_ADD.js +0 -1
- package/src/client/websocket/handlers/INTERACTION_MODAL_CREATE.js +1 -0
- package/src/client/websocket/handlers/MESSAGE_POLL_VOTE_ADD.js +22 -0
- package/src/client/websocket/handlers/MESSAGE_POLL_VOTE_REMOVE.js +12 -0
- package/src/client/websocket/handlers/READY.js +90 -140
- package/src/client/websocket/handlers/RELATIONSHIP_ADD.js +7 -5
- package/src/client/websocket/handlers/RELATIONSHIP_REMOVE.js +7 -5
- package/src/client/websocket/handlers/RELATIONSHIP_UPDATE.js +32 -9
- package/src/client/websocket/handlers/USER_GUILD_SETTINGS_UPDATE.js +2 -8
- package/src/client/websocket/handlers/USER_NOTE_UPDATE.js +1 -1
- package/src/client/websocket/handlers/USER_REQUIRED_ACTION_UPDATE.js +78 -0
- package/src/client/websocket/handlers/USER_SETTINGS_UPDATE.js +1 -5
- package/src/client/websocket/handlers/VOICE_CHANNEL_STATUS_UPDATE.js +12 -0
- package/src/client/websocket/handlers/index.js +17 -20
- package/src/errors/Messages.js +25 -69
- package/src/index.js +13 -43
- package/src/managers/ApplicationCommandManager.js +9 -12
- package/src/managers/ApplicationCommandPermissionsManager.js +3 -11
- package/src/managers/ChannelManager.js +2 -3
- package/src/managers/ClientUserSettingManager.js +162 -280
- package/src/managers/GuildBanManager.js +47 -1
- package/src/managers/GuildChannelManager.js +2 -16
- package/src/managers/GuildForumThreadManager.js +24 -30
- package/src/managers/GuildManager.js +1 -1
- package/src/managers/GuildMemberManager.js +50 -222
- package/src/managers/GuildSettingManager.js +22 -15
- package/src/managers/MessageManager.js +42 -44
- package/src/managers/PermissionOverwriteManager.js +1 -1
- package/src/managers/ReactionUserManager.js +5 -5
- package/src/managers/RelationshipManager.js +83 -76
- package/src/managers/ThreadManager.js +12 -45
- package/src/managers/ThreadMemberManager.js +1 -1
- package/src/managers/UserManager.js +6 -10
- package/src/managers/UserNoteManager.js +53 -0
- package/src/rest/APIRequest.js +48 -20
- package/src/rest/DiscordAPIError.js +17 -16
- package/src/rest/RESTManager.js +1 -21
- package/src/rest/RequestHandler.js +35 -21
- package/src/structures/ApplicationCommand.js +19 -456
- package/src/structures/ApplicationRoleConnectionMetadata.js +3 -0
- package/src/structures/AutoModerationRule.js +5 -5
- package/src/structures/AutocompleteInteraction.js +1 -0
- package/src/structures/BaseGuildTextChannel.js +10 -12
- package/src/structures/BaseGuildVoiceChannel.js +16 -18
- package/src/structures/{Call.js → CallState.js} +17 -12
- package/src/structures/CategoryChannel.js +2 -0
- package/src/structures/Channel.js +2 -3
- package/src/structures/ClientPresence.js +20 -19
- package/src/structures/ClientUser.js +117 -338
- package/src/structures/ContextMenuInteraction.js +1 -1
- package/src/structures/DMChannel.js +29 -92
- package/src/structures/ForumChannel.js +0 -10
- package/src/structures/GroupDMChannel.js +387 -0
- package/src/structures/Guild.js +135 -271
- package/src/structures/GuildAuditLogs.js +0 -5
- package/src/structures/GuildChannel.js +16 -2
- package/src/structures/GuildMember.js +27 -145
- package/src/structures/Interaction.js +1 -62
- package/src/structures/Invite.js +35 -52
- package/src/structures/Message.js +220 -203
- package/src/structures/MessageAttachment.js +11 -0
- package/src/structures/MessageButton.js +1 -67
- package/src/structures/MessageEmbed.js +1 -1
- package/src/structures/MessageMentions.js +3 -2
- package/src/structures/MessagePayload.js +6 -46
- package/src/structures/MessagePoll.js +238 -0
- package/src/structures/MessageReaction.js +1 -1
- package/src/structures/MessageSelectMenu.js +1 -252
- package/src/structures/Modal.js +70 -188
- package/src/structures/Presence.js +787 -129
- package/src/structures/Role.js +18 -2
- package/src/structures/SelectMenuInteraction.js +2 -151
- package/src/structures/Team.js +0 -49
- package/src/structures/TextInputComponent.js +0 -70
- package/src/structures/ThreadChannel.js +0 -19
- package/src/structures/User.js +145 -339
- package/src/structures/UserContextMenuInteraction.js +2 -2
- package/src/structures/VoiceState.js +74 -39
- package/src/structures/WebEmbed.js +38 -52
- package/src/structures/Webhook.js +17 -11
- package/src/structures/interfaces/Application.js +146 -23
- package/src/structures/interfaces/TextBasedChannel.js +409 -256
- package/src/util/ApplicationFlags.js +1 -1
- package/src/util/AttachmentFlags.js +38 -0
- package/src/util/Constants.js +120 -285
- package/src/util/Formatters.js +16 -2
- package/src/util/InviteFlags.js +29 -0
- package/src/util/LimitedCollection.js +1 -1
- package/src/util/Options.js +48 -74
- package/src/util/Permissions.js +15 -0
- package/src/util/PurchasedFlags.js +2 -0
- package/src/util/RemoteAuth.js +221 -356
- package/src/util/RoleFlags.js +37 -0
- package/src/util/Sweepers.js +1 -1
- package/src/util/Util.js +158 -32
- package/typings/enums.d.ts +24 -73
- package/typings/index.d.ts +978 -1288
- package/typings/rawDataTypes.d.ts +68 -9
- package/src/client/actions/InteractionCreate.js +0 -115
- package/src/client/websocket/handlers/APPLICATION_COMMAND_AUTOCOMPLETE_RESPONSE.js +0 -23
- package/src/client/websocket/handlers/GUILD_APPLICATION_COMMANDS_UPDATE.js +0 -11
- package/src/client/websocket/handlers/GUILD_MEMBER_LIST_UPDATE.js +0 -55
- package/src/client/websocket/handlers/GUILD_SOUNDBOARD_SOUNDS_UPDATE.js +0 -0
- package/src/client/websocket/handlers/GUILD_SOUNDBOARD_SOUND_CREATE.js +0 -0
- package/src/client/websocket/handlers/GUILD_SOUNDBOARD_SOUND_DELETE.js +0 -0
- package/src/client/websocket/handlers/GUILD_SOUNDBOARD_SOUND_UPDATE.js +0 -0
- package/src/client/websocket/handlers/INTERACTION_CREATE.js +0 -16
- package/src/client/websocket/handlers/INTERACTION_FAILURE.js +0 -18
- package/src/client/websocket/handlers/INTERACTION_SUCCESS.js +0 -30
- package/src/client/websocket/handlers/MESSAGE_ACK.js +0 -16
- package/src/client/websocket/handlers/SOUNDBOARD_SOUNDS.js +0 -0
- package/src/client/websocket/handlers/VOICE_CHANNEL_EFFECT_SEND.js +0 -0
- package/src/managers/DeveloperPortalManager.js +0 -104
- package/src/managers/GuildApplicationCommandManager.js +0 -28
- package/src/managers/GuildFolderManager.js +0 -24
- package/src/managers/SessionManager.js +0 -57
- package/src/rest/CaptchaSolver.js +0 -132
- package/src/structures/ClientApplication.js +0 -204
- package/src/structures/DeveloperPortalApplication.js +0 -520
- package/src/structures/GuildFolder.js +0 -75
- package/src/structures/InteractionResponse.js +0 -114
- package/src/structures/PartialGroupDMChannel.js +0 -433
- package/src/structures/RichPresence.js +0 -722
- package/src/structures/Session.js +0 -81
- package/src/util/Voice.js +0 -1456
- package/src/util/arRPC/index.js +0 -229
- package/src/util/arRPC/process/detectable.json +0 -1
- package/src/util/arRPC/process/index.js +0 -102
- package/src/util/arRPC/process/native/index.js +0 -5
- package/src/util/arRPC/process/native/linux.js +0 -37
- package/src/util/arRPC/process/native/win32.js +0 -25
- package/src/util/arRPC/transports/ipc.js +0 -281
- package/src/util/arRPC/transports/websocket.js +0 -128
package/README.md
CHANGED
|
@@ -3,20 +3,13 @@
|
|
|
3
3
|
<p>
|
|
4
4
|
<a href="https://discord.js.org"><img src="https://discord.js.org/static/logo.svg" width="546" alt="discord.js" /></a>
|
|
5
5
|
</p>
|
|
6
|
-
<br />
|
|
7
|
-
<p>
|
|
8
|
-
<a href="https://discord.gg/djs"><img src="https://img.shields.io/discord/222078108977594368?color=5865F2&logo=discord&logoColor=white" alt="Discord server" /></a>
|
|
9
|
-
<a href="https://www.npmjs.com/package/discord.js"><img src="https://img.shields.io/npm/v/discord.js.svg" alt="npm version" /></a>
|
|
10
|
-
<a href="https://www.npmjs.com/package/discord.js"><img src="https://img.shields.io/npm/dt/discord.js.svg" alt="npm downloads" /></a>
|
|
11
|
-
<a href="https://github.com/discordjs/discord.js/actions"><img src="https://github.com/discordjs/discord.js/actions/workflows/test.yml/badge.svg" alt="Tests status" /></a>
|
|
12
|
-
</p>
|
|
13
6
|
</div>
|
|
14
7
|
|
|
15
8
|
## About
|
|
16
9
|
|
|
17
|
-
<strong>Welcome to `
|
|
10
|
+
<strong>Welcome to `discord.js-selfbot-v13@v3.2`, based on `discord.js@13.17`</strong>
|
|
18
11
|
|
|
19
|
-
-
|
|
12
|
+
- discord.js-selfbot-v13 is a [Node.js](https://nodejs.org) module that allows user accounts to interact with the Discord API v9.
|
|
20
13
|
|
|
21
14
|
|
|
22
15
|
<div align="center">
|
|
@@ -30,44 +23,39 @@
|
|
|
30
23
|
### <strong>I don't take any responsibility for blocked Discord accounts that used this module.</strong>
|
|
31
24
|
### <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>
|
|
32
25
|
|
|
33
|
-
|
|
26
|
+
## Project Status
|
|
27
|
+
|
|
28
|
+
`discord.js-selfbot-v13` is currently in maintenance mode. New features are not actively being added but existing features and new versions of discord are supported as possible. There are some major architectural changes which need to be added to improve the stability and security of the project. I don't have as much spare time as I did when I started this project, so there is not currently any plan for these improvements.
|
|
29
|
+
|
|
30
|
+
### <strong>[Document Website](https://discordjs-self-v13.netlify.app/)</strong>
|
|
34
31
|
|
|
35
|
-
### <strong>[
|
|
32
|
+
### <strong>[Example Code](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/tree/main/examples)</strong>
|
|
36
33
|
|
|
37
34
|
## Features (User)
|
|
38
35
|
- [x] Message: Embeds (WebEmbed)
|
|
39
|
-
- [x] User:
|
|
36
|
+
- [x] User: Status, Activity, RemoteAuth, etc.
|
|
40
37
|
- [X] Guild: Fetch Members, Join / Leave, Top emojis, ...
|
|
41
|
-
- [X] Interactions: Slash Commands,
|
|
38
|
+
- [X] Interactions: Slash Commands, Buttons, Menu, Modal
|
|
42
39
|
- [X] Captcha Handler (2captcha, capmonster, custom)
|
|
43
40
|
- [X] Documentation
|
|
44
41
|
- [x] Voice & [Video stream](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/issues/293)
|
|
45
42
|
- [ ] Everything
|
|
46
43
|
|
|
47
|
-
### Optional packages
|
|
48
|
-
|
|
49
|
-
- [2captcha](https://www.npmjs.com/package/2captcha) for solving captcha (`npm install 2captcha`)
|
|
50
|
-
- [node-capmonster](https://www.npmjs.com/package/node-capmonster) for solving captcha (`npm install node-capmonster`)
|
|
51
|
-
|
|
52
44
|
## Installation
|
|
53
45
|
|
|
54
46
|
**Node.js 16.6.0 or newer is required**
|
|
55
47
|
|
|
56
|
-
> Recommended Node.js version: 18 (LTS)
|
|
48
|
+
> Recommended Node.js version: 18+ (LTS)
|
|
57
49
|
|
|
58
50
|
```sh-session
|
|
59
|
-
npm install
|
|
51
|
+
npm install discord.js-selfbot-v13@latest
|
|
60
52
|
```
|
|
61
53
|
|
|
62
54
|
## Example
|
|
63
55
|
|
|
64
56
|
```js
|
|
65
|
-
const { Client } = require('
|
|
66
|
-
const client = new Client(
|
|
67
|
-
// See other options here
|
|
68
|
-
// https://discordjs-self-v13.netlify.app/#/docs/docs/main/typedef/ClientOptions
|
|
69
|
-
// All partials are loaded automatically
|
|
70
|
-
});
|
|
57
|
+
const { Client } = require('discord.js-selfbot-v13');
|
|
58
|
+
const client = new Client();
|
|
71
59
|
|
|
72
60
|
client.on('ready', async () => {
|
|
73
61
|
console.log(`${client.user.username} is ready!`);
|
|
@@ -85,6 +73,7 @@ window.webpackChunkdiscord_app.push([
|
|
|
85
73
|
[Math.random()],
|
|
86
74
|
{},
|
|
87
75
|
req => {
|
|
76
|
+
if (!req.c) return;
|
|
88
77
|
for (const m of Object.keys(req.c)
|
|
89
78
|
.map(x => req.c[x].exports)
|
|
90
79
|
.filter(x => x)) {
|
|
@@ -101,13 +90,10 @@ console.log('%cWorked!', 'font-size: 50px');
|
|
|
101
90
|
console.log(`%cYou now have your token in the clipboard!`, 'font-size: 16px');
|
|
102
91
|
```
|
|
103
92
|
|
|
104
|
-
Credit: <img src="https://cdn.discordapp.com/emojis/889092230063734795.png" alt="." width="16" height="16"/> [<strong>hxr404</strong>](https://github.com/hxr404/Discord-Console-hacks)
|
|
105
|
-
|
|
106
|
-
|
|
107
93
|
## Contributing
|
|
108
94
|
|
|
109
95
|
- Before creating an issue, please ensure that it hasn't already been reported/suggested, and double-check the
|
|
110
|
-
[documentation](https://
|
|
96
|
+
[documentation](https://discordjs-self-v13.netlify.app/).
|
|
111
97
|
- See [the contribution guide](https://github.com/discordjs/discord.js/blob/main/.github/CONTRIBUTING.md) if you'd like to submit a PR.
|
|
112
98
|
|
|
113
99
|
## Need help?
|
|
@@ -116,17 +102,14 @@ Github Discussion: [Here](https://github.com/aiko-chan-ai/discord.js-selfbot-v13
|
|
|
116
102
|
## Credits
|
|
117
103
|
- [Discord.js](https://github.com/discordjs/discord.js)
|
|
118
104
|
|
|
119
|
-
## <strong
|
|
105
|
+
## <strong>Other project(s)
|
|
120
106
|
|
|
121
107
|
- 📘 [***aiko-chan-ai/DiscordBotClient***](https://github.com/aiko-chan-ai/DiscordBotClient) <br/>
|
|
122
108
|
A patched version of discord, with bot login support
|
|
123
|
-
- 📕 [***aiko-chan-ai/Discord-Markdown***](https://github.com/aiko-chan-ai/Discord-Markdown) <br/>
|
|
124
|
-
Better Markdown to text chat Discord.
|
|
125
|
-
- 📗 ...
|
|
126
109
|
|
|
127
110
|
## Star History
|
|
128
111
|
|
|
129
112
|
[](https://star-history.com/#aiko-chan-ai/discord.js-selfbot-v13&Date)
|
|
130
113
|
|
|
131
114
|
|
|
132
|
-
# From Github with love 💕
|
|
115
|
+
# From Github with love 💕
|
package/package.json
CHANGED
|
@@ -1,100 +1,85 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "djs-selfbot-v13",
|
|
3
|
-
"version": "3.
|
|
4
|
-
"description": "A unofficial discord.js fork for creating selfbots [Based on discord.js v13]",
|
|
5
|
-
"main": "./src/index.js",
|
|
6
|
-
"types": "./typings/index.d.ts",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"all": "npm run build && npm publish",
|
|
9
|
-
"test": "npm run lint:all && npm run docs:test && npm run test:typescript",
|
|
10
|
-
"fix:all": "npm run lint:fix && npm run lint:typings:fix && npm run format",
|
|
11
|
-
"test:typescript": "tsc --noEmit && tsd",
|
|
12
|
-
"lint": "eslint .",
|
|
13
|
-
"lint:fix": "eslint . --fix",
|
|
14
|
-
"lint:typings": "tslint typings/index.d.ts",
|
|
15
|
-
"lint:typings:fix": "tslint typings/index.d.ts --fix",
|
|
16
|
-
"format": "prettier --write src/**/*.js typings/**/*.ts",
|
|
17
|
-
"lint:all": "npm run lint && npm run lint:typings",
|
|
18
|
-
"docs": "docgen --source src --custom docs/index.yml --output docs/main.json",
|
|
19
|
-
"docs:test": "docgen --source src --custom docs/index.yml",
|
|
20
|
-
"build": "npm run lint:fix && npm run lint:typings:fix && npm run format && npm run docs"
|
|
21
|
-
},
|
|
22
|
-
"files": [
|
|
23
|
-
"src",
|
|
24
|
-
"typings"
|
|
25
|
-
],
|
|
26
|
-
"directories": {
|
|
27
|
-
"lib": "src",
|
|
28
|
-
"test": "test"
|
|
29
|
-
},
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
"dtslint": "^4.2.1",
|
|
87
|
-
"eslint": "^8.39.0",
|
|
88
|
-
"eslint-config-prettier": "^8.8.0",
|
|
89
|
-
"eslint-plugin-import": "^2.27.5",
|
|
90
|
-
"eslint-plugin-prettier": "^4.2.1",
|
|
91
|
-
"husky": "^7.0.4",
|
|
92
|
-
"is-ci": "^3.0.1",
|
|
93
|
-
"jest": "^28.1.3",
|
|
94
|
-
"lint-staged": "^12.1.4",
|
|
95
|
-
"prettier": "^2.8.8",
|
|
96
|
-
"tsd": "^0.28.1",
|
|
97
|
-
"tslint": "^6.1.3",
|
|
98
|
-
"typescript": "^4.9.5"
|
|
99
|
-
}
|
|
100
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "djs-selfbot-v13",
|
|
3
|
+
"version": "3.2.2",
|
|
4
|
+
"description": "A unofficial discord.js fork for creating selfbots [Based on discord.js v13]",
|
|
5
|
+
"main": "./src/index.js",
|
|
6
|
+
"types": "./typings/index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"all": "npm run build && npm publish",
|
|
9
|
+
"test": "npm run lint:all && npm run docs:test && npm run test:typescript",
|
|
10
|
+
"fix:all": "npm run lint:fix && npm run lint:typings:fix && npm run format",
|
|
11
|
+
"test:typescript": "tsc --noEmit && tsd",
|
|
12
|
+
"lint": "eslint .",
|
|
13
|
+
"lint:fix": "eslint . --fix",
|
|
14
|
+
"lint:typings": "tslint typings/index.d.ts",
|
|
15
|
+
"lint:typings:fix": "tslint typings/index.d.ts --fix",
|
|
16
|
+
"format": "prettier --write src/**/*.js typings/**/*.ts",
|
|
17
|
+
"lint:all": "npm run lint && npm run lint:typings",
|
|
18
|
+
"docs": "docgen --source src --custom docs/index.yml --output docs/main.json",
|
|
19
|
+
"docs:test": "docgen --source src --custom docs/index.yml",
|
|
20
|
+
"build": "npm run lint:fix && npm run lint:typings:fix && npm run format && npm run docs"
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"src",
|
|
24
|
+
"typings"
|
|
25
|
+
],
|
|
26
|
+
"directories": {
|
|
27
|
+
"lib": "src",
|
|
28
|
+
"test": "test"
|
|
29
|
+
},
|
|
30
|
+
"keywords": [
|
|
31
|
+
"discord.js",
|
|
32
|
+
"discord.js v13",
|
|
33
|
+
"selfbot",
|
|
34
|
+
"selfbot v13",
|
|
35
|
+
"djs",
|
|
36
|
+
"api",
|
|
37
|
+
"bot",
|
|
38
|
+
"node",
|
|
39
|
+
"discord",
|
|
40
|
+
"client",
|
|
41
|
+
"discordapp"
|
|
42
|
+
],
|
|
43
|
+
"author": "aiko-chan-ai",
|
|
44
|
+
"license": "GNU General Public License v3.0",
|
|
45
|
+
"dependencies": {
|
|
46
|
+
"@aikochan2k6/qrcode-terminal": "^0.12.1",
|
|
47
|
+
"@discordjs/builders": "^1.6.3",
|
|
48
|
+
"@discordjs/collection": "^1.5.3",
|
|
49
|
+
"@sapphire/async-queue": "^1.5.2",
|
|
50
|
+
"@sapphire/shapeshift": "^3.9.5",
|
|
51
|
+
"@types/node-fetch": "^2.6.11",
|
|
52
|
+
"@types/ws": "^8.5.10",
|
|
53
|
+
"discord-api-types": "^0.37.61",
|
|
54
|
+
"fetch-cookie": "^2.1.0",
|
|
55
|
+
"form-data": "^4.0.0",
|
|
56
|
+
"node-fetch": "^2.6.9",
|
|
57
|
+
"tough-cookie": "^4.1.4",
|
|
58
|
+
"ws": "^8.16.0"
|
|
59
|
+
},
|
|
60
|
+
"engines": {
|
|
61
|
+
"node": ">=16.6.0",
|
|
62
|
+
"npm": ">=7.0.0"
|
|
63
|
+
},
|
|
64
|
+
"devDependencies": {
|
|
65
|
+
"@commitlint/cli": "^16.0.1",
|
|
66
|
+
"@commitlint/config-angular": "^16.0.0",
|
|
67
|
+
"@discordjs/docgen": "^0.11.1",
|
|
68
|
+
"@favware/npm-deprecate": "^1.0.7",
|
|
69
|
+
"@types/node": "^18.16.0",
|
|
70
|
+
"conventional-changelog-cli": "^2.2.2",
|
|
71
|
+
"dtslint": "^4.2.1",
|
|
72
|
+
"eslint": "^8.39.0",
|
|
73
|
+
"eslint-config-prettier": "^8.8.0",
|
|
74
|
+
"eslint-plugin-import": "^2.27.5",
|
|
75
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
76
|
+
"husky": "^7.0.4",
|
|
77
|
+
"is-ci": "^3.0.1",
|
|
78
|
+
"jest": "^28.1.3",
|
|
79
|
+
"lint-staged": "^12.1.4",
|
|
80
|
+
"prettier": "^2.8.8",
|
|
81
|
+
"tsd": "^0.28.1",
|
|
82
|
+
"tslint": "^6.1.3",
|
|
83
|
+
"typescript": "^4.9.5"
|
|
84
|
+
}
|
|
85
|
+
}
|
package/src/client/BaseClient.js
CHANGED
|
@@ -12,13 +12,12 @@ const Util = require('../util/Util');
|
|
|
12
12
|
*/
|
|
13
13
|
class BaseClient extends EventEmitter {
|
|
14
14
|
constructor(options = {}) {
|
|
15
|
-
super();
|
|
15
|
+
super({ captureRejections: true });
|
|
16
|
+
|
|
16
17
|
if (options.intents) {
|
|
17
18
|
process.emitWarning('Intents is not available.', 'DeprecationWarning');
|
|
18
19
|
}
|
|
19
|
-
|
|
20
|
-
options.captchaService = 'custom';
|
|
21
|
-
}
|
|
20
|
+
|
|
22
21
|
/**
|
|
23
22
|
* The options the client was instantiated with
|
|
24
23
|
* @type {ClientOptions}
|