discord.js-selfv13 13.0.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of discord.js-selfv13 might be problematic. Click here for more details.

Files changed (188) hide show
  1. package/.dccache +1 -0
  2. package/LICENSE +190 -0
  3. package/README.md +87 -0
  4. package/browser.js +9 -0
  5. package/deploy/deploy-key.enc +0 -0
  6. package/deploy/deploy.sh +90 -0
  7. package/deploy/test.sh +34 -0
  8. package/docs/README.md +1 -0
  9. package/docs/examples/attachments.md +163 -0
  10. package/docs/examples/avatars.js +29 -0
  11. package/docs/examples/embed.js +38 -0
  12. package/docs/examples/greeting.js +30 -0
  13. package/docs/examples/moderation.md +145 -0
  14. package/docs/examples/ping.js +29 -0
  15. package/docs/examples/webhook.js +12 -0
  16. package/docs/general/faq.md +23 -0
  17. package/docs/general/updating.md +181 -0
  18. package/docs/general/welcome.md +95 -0
  19. package/docs/index.yml +30 -0
  20. package/docs/logo.svg +19 -0
  21. package/docs/topics/voice.md +113 -0
  22. package/docs/topics/web.md +38 -0
  23. package/package.json +147 -0
  24. package/src/client/Client.js +564 -0
  25. package/src/client/ClientDataManager.js +150 -0
  26. package/src/client/ClientDataResolver.js +376 -0
  27. package/src/client/ClientManager.js +74 -0
  28. package/src/client/WebhookClient.js +118 -0
  29. package/src/client/actions/Action.js +23 -0
  30. package/src/client/actions/ActionsManager.js +40 -0
  31. package/src/client/actions/ChannelCreate.js +11 -0
  32. package/src/client/actions/ChannelDelete.js +30 -0
  33. package/src/client/actions/ChannelUpdate.js +74 -0
  34. package/src/client/actions/GuildBanRemove.js +13 -0
  35. package/src/client/actions/GuildChannelsPositionUpdate.js +19 -0
  36. package/src/client/actions/GuildDelete.js +57 -0
  37. package/src/client/actions/GuildEmojiCreate.js +17 -0
  38. package/src/client/actions/GuildEmojiDelete.js +18 -0
  39. package/src/client/actions/GuildEmojiUpdate.js +17 -0
  40. package/src/client/actions/GuildEmojisUpdate.js +38 -0
  41. package/src/client/actions/GuildMemberGet.js +10 -0
  42. package/src/client/actions/GuildMemberRemove.js +41 -0
  43. package/src/client/actions/GuildRoleCreate.js +26 -0
  44. package/src/client/actions/GuildRoleDelete.js +42 -0
  45. package/src/client/actions/GuildRoleUpdate.js +41 -0
  46. package/src/client/actions/GuildRolesPositionUpdate.js +19 -0
  47. package/src/client/actions/GuildSync.js +29 -0
  48. package/src/client/actions/GuildUpdate.js +34 -0
  49. package/src/client/actions/MessageCreate.js +53 -0
  50. package/src/client/actions/MessageDelete.js +35 -0
  51. package/src/client/actions/MessageDeleteBulk.js +26 -0
  52. package/src/client/actions/MessageReactionAdd.js +37 -0
  53. package/src/client/actions/MessageReactionRemove.js +37 -0
  54. package/src/client/actions/MessageReactionRemoveAll.js +25 -0
  55. package/src/client/actions/MessageUpdate.js +40 -0
  56. package/src/client/actions/Ready.js +1 -0
  57. package/src/client/actions/Ready.js.bak +65 -0
  58. package/src/client/actions/UserGet.js +11 -0
  59. package/src/client/actions/UserNoteUpdate.js +30 -0
  60. package/src/client/actions/UserUpdate.js +33 -0
  61. package/src/client/rest/APIRequest.js +56 -0
  62. package/src/client/rest/DiscordAPIError.js +60 -0
  63. package/src/client/rest/RESTManager.js +58 -0
  64. package/src/client/rest/RESTMethods.js +1006 -0
  65. package/src/client/rest/RequestHandlers/Burst.js +90 -0
  66. package/src/client/rest/RequestHandlers/RequestHandler.js +54 -0
  67. package/src/client/rest/RequestHandlers/Sequential.js +132 -0
  68. package/src/client/rest/UserAgentManager.js +25 -0
  69. package/src/client/voice/ClientVoiceManager.js +81 -0
  70. package/src/client/voice/VoiceBroadcast.js +366 -0
  71. package/src/client/voice/VoiceConnection.js +530 -0
  72. package/src/client/voice/VoiceUDPClient.js +127 -0
  73. package/src/client/voice/VoiceWebSocket.js +246 -0
  74. package/src/client/voice/dispatcher/StreamDispatcher.js +331 -0
  75. package/src/client/voice/opus/BaseOpusEngine.js +60 -0
  76. package/src/client/voice/opus/NodeOpusEngine.js +40 -0
  77. package/src/client/voice/opus/OpusEngineList.js +28 -0
  78. package/src/client/voice/opus/OpusScriptEngine.js +45 -0
  79. package/src/client/voice/player/AudioPlayer.js +170 -0
  80. package/src/client/voice/receiver/VoiceReadable.js +17 -0
  81. package/src/client/voice/receiver/VoiceReceiver.js +219 -0
  82. package/src/client/voice/util/SecretKey.js +16 -0
  83. package/src/client/voice/util/Secretbox.js +33 -0
  84. package/src/client/voice/util/VolumeInterface.js +86 -0
  85. package/src/client/websocket/WebSocketConnection.js +506 -0
  86. package/src/client/websocket/WebSocketManager.js +90 -0
  87. package/src/client/websocket/packets/WebSocketPacketManager.js +110 -0
  88. package/src/client/websocket/packets/handlers/AbstractHandler.js +11 -0
  89. package/src/client/websocket/packets/handlers/ChannelCreate.js +17 -0
  90. package/src/client/websocket/packets/handlers/ChannelDelete.js +20 -0
  91. package/src/client/websocket/packets/handlers/ChannelPinsUpdate.js +37 -0
  92. package/src/client/websocket/packets/handlers/ChannelUpdate.js +11 -0
  93. package/src/client/websocket/packets/handlers/GuildBanAdd.js +23 -0
  94. package/src/client/websocket/packets/handlers/GuildBanRemove.js +20 -0
  95. package/src/client/websocket/packets/handlers/GuildCreate.js +22 -0
  96. package/src/client/websocket/packets/handlers/GuildDelete.js +19 -0
  97. package/src/client/websocket/packets/handlers/GuildEmojisUpdate.js +11 -0
  98. package/src/client/websocket/packets/handlers/GuildIntegrationsUpdate.js +19 -0
  99. package/src/client/websocket/packets/handlers/GuildMemberAdd.js +17 -0
  100. package/src/client/websocket/packets/handlers/GuildMemberRemove.js +13 -0
  101. package/src/client/websocket/packets/handlers/GuildMemberUpdate.js +18 -0
  102. package/src/client/websocket/packets/handlers/GuildMembersChunk.js +33 -0
  103. package/src/client/websocket/packets/handlers/GuildRoleCreate.js +11 -0
  104. package/src/client/websocket/packets/handlers/GuildRoleDelete.js +11 -0
  105. package/src/client/websocket/packets/handlers/GuildRoleUpdate.js +11 -0
  106. package/src/client/websocket/packets/handlers/GuildSync.js +11 -0
  107. package/src/client/websocket/packets/handlers/GuildUpdate.js +11 -0
  108. package/src/client/websocket/packets/handlers/MessageCreate.js +19 -0
  109. package/src/client/websocket/packets/handlers/MessageDelete.js +19 -0
  110. package/src/client/websocket/packets/handlers/MessageDeleteBulk.js +17 -0
  111. package/src/client/websocket/packets/handlers/MessageReactionAdd.js +11 -0
  112. package/src/client/websocket/packets/handlers/MessageReactionRemove.js +11 -0
  113. package/src/client/websocket/packets/handlers/MessageReactionRemoveAll.js +11 -0
  114. package/src/client/websocket/packets/handlers/MessageUpdate.js +11 -0
  115. package/src/client/websocket/packets/handlers/PresenceUpdate.js +76 -0
  116. package/src/client/websocket/packets/handlers/Ready.js +83 -0
  117. package/src/client/websocket/packets/handlers/RelationshipAdd.js +19 -0
  118. package/src/client/websocket/packets/handlers/RelationshipRemove.js +19 -0
  119. package/src/client/websocket/packets/handlers/Resumed.js +28 -0
  120. package/src/client/websocket/packets/handlers/TypingStart.js +68 -0
  121. package/src/client/websocket/packets/handlers/UserGuildSettingsUpdate.js +21 -0
  122. package/src/client/websocket/packets/handlers/UserNoteUpdate.js +12 -0
  123. package/src/client/websocket/packets/handlers/UserSettingsUpdate.js +18 -0
  124. package/src/client/websocket/packets/handlers/UserUpdate.js +11 -0
  125. package/src/client/websocket/packets/handlers/VoiceServerUpdate.js +19 -0
  126. package/src/client/websocket/packets/handlers/VoiceStateUpdate.js +52 -0
  127. package/src/client/websocket/packets/handlers/WebhooksUpdate.js +19 -0
  128. package/src/index.js +66 -0
  129. package/src/sharding/Shard.js +282 -0
  130. package/src/sharding/ShardClientUtil.js +146 -0
  131. package/src/sharding/ShardingManager.js +220 -0
  132. package/src/structures/Attachment.js +75 -0
  133. package/src/structures/CategoryChannel.js +22 -0
  134. package/src/structures/Channel.js +78 -0
  135. package/src/structures/ClientUser.js +447 -0
  136. package/src/structures/ClientUserChannelOverride.js +30 -0
  137. package/src/structures/ClientUserGuildSettings.js +60 -0
  138. package/src/structures/ClientUserSettings.js +80 -0
  139. package/src/structures/DMChannel.js +76 -0
  140. package/src/structures/Emoji.js +256 -0
  141. package/src/structures/GroupDMChannel.js +246 -0
  142. package/src/structures/Guild.js +1461 -0
  143. package/src/structures/GuildAuditLogs.js +371 -0
  144. package/src/structures/GuildChannel.js +537 -0
  145. package/src/structures/GuildMember.js +613 -0
  146. package/src/structures/Invite.js +164 -0
  147. package/src/structures/Message.js +605 -0
  148. package/src/structures/MessageAttachment.js +68 -0
  149. package/src/structures/MessageCollector.js +100 -0
  150. package/src/structures/MessageEmbed.js +386 -0
  151. package/src/structures/MessageMentions.js +144 -0
  152. package/src/structures/MessageReaction.js +96 -0
  153. package/src/structures/NewsChannel.js +24 -0
  154. package/src/structures/OAuth2Application.js +148 -0
  155. package/src/structures/PartialGuild.js +51 -0
  156. package/src/structures/PartialGuildChannel.js +44 -0
  157. package/src/structures/PermissionOverwrites.js +69 -0
  158. package/src/structures/Presence.js +241 -0
  159. package/src/structures/ReactionCollector.js +85 -0
  160. package/src/structures/ReactionEmoji.js +49 -0
  161. package/src/structures/RichEmbed.js +295 -0
  162. package/src/structures/Role.js +376 -0
  163. package/src/structures/StoreChannel.js +25 -0
  164. package/src/structures/TextChannel.js +154 -0
  165. package/src/structures/User.js +329 -0
  166. package/src/structures/UserConnection.js +48 -0
  167. package/src/structures/UserProfile.js +62 -0
  168. package/src/structures/VoiceChannel.js +146 -0
  169. package/src/structures/VoiceRegion.js +50 -0
  170. package/src/structures/Webhook.js +304 -0
  171. package/src/structures/interfaces/Collector.js +179 -0
  172. package/src/structures/interfaces/TextBasedChannel.js +635 -0
  173. package/src/structures/shared/resolvePermissions.js +26 -0
  174. package/src/util/Collection.js +532 -0
  175. package/src/util/Constants.js +845 -0
  176. package/src/util/Permissions.js +306 -0
  177. package/src/util/Snowflake.js +82 -0
  178. package/src/util/Util.js +221 -0
  179. package/test/random.js +207 -0
  180. package/test/shard.js +31 -0
  181. package/test/sharder.js +7 -0
  182. package/test/voice.js +78 -0
  183. package/test/webpack.html +31 -0
  184. package/tsconfig.json +13 -0
  185. package/tslint.json +62 -0
  186. package/typings/discord.js-test.ts +69 -0
  187. package/typings/index.d.ts +2190 -0
  188. package/webpack.config.js +62 -0
@@ -0,0 +1,113 @@
1
+ # Introduction to Voice
2
+ Voice in discord.js can be used for many things, such as music bots, recording or relaying audio.
3
+
4
+ In discord.js, you can use voice by connecting to a `VoiceChannel` to obtain a `VoiceConnection`, where you can start streaming and receiving audio.
5
+
6
+ To get started, make sure you have:
7
+ * FFmpeg - `npm install ffmpeg-binaries`
8
+ * an opus encoder, choose one from below:
9
+ * `npm install opusscript`
10
+ * `npm install node-opus`
11
+ * a good network connection
12
+
13
+ The preferred opus engine is node-opus, as it performs significantly better than opusscript. When both are available, discord.js will automatically choose node-opus.
14
+ Using opusscript is only recommended for development environments where node-opus is tough to get working.
15
+ For production bots, using node-opus should be considered a necessity, especially if they're going to be running on multiple servers.
16
+
17
+ ## Joining a voice channel
18
+ The example below reacts to a message and joins the sender's voice channel, catching any errors. This is important
19
+ as it allows us to obtain a `VoiceConnection` that we can start to stream audio with.
20
+
21
+ ```js
22
+ const Discord = require('discord.js');
23
+ const client = new Discord.Client();
24
+
25
+ client.login('token here');
26
+
27
+ client.on('message', message => {
28
+ // Voice only works in guilds, if the message does not come from a guild,
29
+ // we ignore it
30
+ if (!message.guild) return;
31
+
32
+ if (message.content === '/join') {
33
+ // Only try to join the sender's voice channel if they are in one themselves
34
+ if (message.member.voiceChannel) {
35
+ message.member.voiceChannel.join()
36
+ .then(connection => { // Connection is an instance of VoiceConnection
37
+ message.reply('I have successfully connected to the channel!');
38
+ })
39
+ .catch(console.log);
40
+ } else {
41
+ message.reply('You need to join a voice channel first!');
42
+ }
43
+ }
44
+ });
45
+ ```
46
+
47
+ ## Streaming to a Voice Channel
48
+ In the previous example, we looked at how to join a voice channel in order to obtain a `VoiceConnection`. Now that we
49
+ have obtained a voice connection, we can start streaming audio to it. The following example shows how to stream an mp3
50
+ file:
51
+
52
+ **Playing a file:**
53
+ ```js
54
+ // To play a file, we need to give an absolute path to it
55
+ const dispatcher = connection.playFile('C:/Users/Discord/Desktop/myfile.mp3');
56
+ ```
57
+
58
+ Your file doesn't have to be just an mp3; ffmpeg can convert videos and audios of many formats.
59
+
60
+ The `dispatcher` variable is an instance of a `StreamDispatcher`, which manages streaming a specific resource to a voice
61
+ channel. We can do many things with the dispatcher, such as finding out when the stream ends or changing the volume:
62
+
63
+ ```js
64
+ dispatcher.on('end', () => {
65
+ // The song has finished
66
+ });
67
+
68
+ dispatcher.on('error', e => {
69
+ // Catch any errors that may arise
70
+ console.log(e);
71
+ });
72
+
73
+ dispatcher.setVolume(0.5); // Set the volume to 50%
74
+ dispatcher.setVolume(1); // Set the volume back to 100%
75
+
76
+ console.log(dispatcher.time); // The time in milliseconds that the stream dispatcher has been playing for
77
+
78
+ dispatcher.pause(); // Pause the stream
79
+ dispatcher.resume(); // Carry on playing
80
+
81
+ dispatcher.end(); // End the dispatcher, emits 'end' event
82
+ ```
83
+
84
+ If you have an existing [ReadableStream](https://nodejs.org/api/stream.html#stream_readable_streams),
85
+ this can also be used:
86
+
87
+ **Playing a ReadableStream:**
88
+ ```js
89
+ connection.playStream(myReadableStream);
90
+
91
+ // If you don't want to use absolute paths, you can use
92
+ // fs.createReadStream to circumvent it
93
+
94
+ const fs = require('fs');
95
+ const stream = fs.createReadStream('./test.mp3');
96
+ connection.playStream(stream);
97
+ ```
98
+
99
+ It's important to note that creating a readable stream to a file is less efficient than simply using `connection.playFile()`.
100
+
101
+ **Playing anything else:**
102
+
103
+ For anything else, such as a URL to a file, you can use `connection.playArbitraryInput()`. You should consult the [ffmpeg protocol documentation](https://ffmpeg.org/ffmpeg-protocols.html) to see what you can use this for.
104
+
105
+ ```js
106
+ // Play an mp3 from a URL
107
+ connection.playArbitraryInput('http://mysite.com/sound.mp3');
108
+ ```
109
+
110
+ Again, playing a file from a URL like this is more performant than creating a ReadableStream to the file.
111
+
112
+ ## Advanced Topics
113
+ soon:tm:
@@ -0,0 +1,38 @@
1
+ # Web builds
2
+ In addition to your usual Node applications, discord.js has special distributions available that are capable of running in web browsers.
3
+ This is useful for client-side web apps that need to interact with the Discord API.
4
+ [Webpack 3](https://webpack.js.org/) is used to build these.
5
+
6
+ ## Usage
7
+ You can obtain your desired version of discord.js' web build from the [webpack branch](https://github.com/discordjs/discord.js/tree/webpack) of the GitHub repository.
8
+ There is a file for each branch and version of the library, and the ones ending in `.min.js` are minified to substantially reduce the size of the source code.
9
+
10
+ Include the file on the page just as you would any other JS library, like so:
11
+ ```html
12
+ <script type="text/javascript" src="discord.VERSION.min.js"></script>
13
+ ```
14
+
15
+ Rather than importing discord.js with `require('discord.js')`, the entire `Discord` object is available as a global (on the `window`) object.
16
+ The usage of the API isn't any different from using it in Node.js.
17
+
18
+ ## Restrictions
19
+ - Any voice-related functionality is unavailable, as there is currently no audio encoding/decoding capabilities without external native libraries,
20
+ which web browsers do not support.
21
+ - The ShardingManager cannot be used, since it relies on being able to spawn child processes for shards.
22
+ - None of the optional packages are usable, since they're native libraries.
23
+
24
+ ## Example
25
+ ```html
26
+ <script type="text/javascript" src="discord.11.5.0.min.js"></script>
27
+ <script type="text/javascript">
28
+ const client = new Discord.Client();
29
+
30
+ client.on('message', msg => {
31
+ const guildTag = msg.channel.type === 'text' ? `[${msg.guild.name}]` : '[DM]';
32
+ const channelTag = msg.channel.type === 'text' ? `[#${msg.channel.name}]` : '';
33
+ console.log(`${guildTag}${channelTag} ${msg.author.tag}: ${msg.content}`);
34
+ });
35
+
36
+ client.login('some crazy token');
37
+ </script>
38
+ ```
package/package.json ADDED
@@ -0,0 +1,147 @@
1
+ {
2
+ "_from": "discord.js-selfv13@^13.0.1",
3
+ "_id": "discord.js-selfv13@^13.0.1",
4
+ "_inBundle": false,
5
+ "_integrity": "sha512-KjeHn3N3PBJZhDZQUcs3riKinMLC7pJy0jiNxzSyF9cVPBZl6CfayUC0d8GQ0I5bf3uc+zKjZfRTjIdcb3zsMA==",
6
+ "_location": "/discord.js-selfv13",
7
+ "_phantomChildren": {},
8
+ "_requested": {
9
+ "type": "range",
10
+ "registry": true,
11
+ "raw": "discord.js-selfv13@^13.0.1",
12
+ "name": "discord.js-selfv13",
13
+ "escapedName": "discord.js-selfv13",
14
+ "rawSpec": "^13.0.1",
15
+ "saveSpec": null,
16
+ "fetchSpec": "^13.0.1"
17
+ },
18
+ "_requiredBy": [
19
+ "/"
20
+ ],
21
+ "_resolved": "https://registry.npmjs.org/discord.js-selfv13/-/discordjs-selfv13-13.0.1.tgz",
22
+ "_shasum": "ae0b20c3f560c1bdfb831fed89d40efafbdb96c7",
23
+ "_spec": "discord.js-selfv13@^13.0.1",
24
+ "author": {
25
+ "name": "evilkaue"
26
+ },
27
+ "browser": {
28
+ "ws": false,
29
+ "uws": false,
30
+ "@discordjs/uws": false,
31
+ "erlpack": false,
32
+ "prism-media": false,
33
+ "opusscript": false,
34
+ "node-opus": false,
35
+ "tweetnacl": false,
36
+ "sodium": false,
37
+ "src/sharding/Shard.js": false,
38
+ "src/sharding/ShardClientUtil.js": false,
39
+ "src/sharding/ShardingManager.js": false,
40
+ "src/client/voice/dispatcher/StreamDispatcher.js": false,
41
+ "src/client/voice/opus/BaseOpusEngine.js": false,
42
+ "src/client/voice/opus/NodeOpusEngine.js": false,
43
+ "src/client/voice/opus/OpusEngineList.js": false,
44
+ "src/client/voice/opus/OpusScriptEngine.js": false,
45
+ "src/client/voice/pcm/ConverterEngine.js": false,
46
+ "src/client/voice/pcm/ConverterEngineList.js": false,
47
+ "src/client/voice/pcm/FfmpegConverterEngine.js": false,
48
+ "src/client/voice/player/AudioPlayer.js": false,
49
+ "src/client/voice/receiver/VoiceReadable.js": false,
50
+ "src/client/voice/receiver/VoiceReceiver.js": false,
51
+ "src/client/voice/util/Secretbox.js": false,
52
+ "src/client/voice/util/SecretKey.js": false,
53
+ "src/client/voice/util/VolumeInterface.js": false,
54
+ "src/client/voice/ClientVoiceManager.js": false,
55
+ "src/client/voice/VoiceBroadcast.js": false,
56
+ "src/client/voice/VoiceConnection.js": false,
57
+ "src/client/voice/VoiceUDPClient.js": false,
58
+ "src/client/voice/VoiceWebSocket.js": false
59
+ },
60
+ "bugs": {
61
+ "url": "https://github.com/discordjs/discord.js/issues"
62
+ },
63
+ "bundleDependencies": false,
64
+ "dependencies": {
65
+ "long": "^4.0.0",
66
+ "prism-media": "^0.0.3",
67
+ "snekfetch": "^3.6.4",
68
+ "tweetnacl": "^1.0.0",
69
+ "ws": "^6.0.0"
70
+ },
71
+ "deprecated": false,
72
+ "description": "Discord.js module for selfbots (automated user accounts).",
73
+ "devDependencies": {
74
+ "@types/node": "^9.4.6",
75
+ "discord.js-docgen": "github:discordjs/docgen",
76
+ "eslint": "^5.4.0",
77
+ "parallel-webpack": "^2.3.0",
78
+ "tslint": "^3.15.1",
79
+ "tslint-config-typings": "^0.2.4",
80
+ "typescript": "^3.0.1",
81
+ "uglifyjs-webpack-plugin": "^1.3.0",
82
+ "webpack": "^4.17.0"
83
+ },
84
+ "directories": {
85
+ "doc": "docs",
86
+ "test": "test"
87
+ },
88
+ "engines": {
89
+ "node": ">=6.0.0"
90
+ },
91
+ "homepage": "https://github.com/discordjs/discord.js#readme",
92
+ "keywords": [
93
+ "discord",
94
+ "api",
95
+ "bot",
96
+ "client",
97
+ "node",
98
+ "discordapp"
99
+ ],
100
+ "license": "Apache-2.0",
101
+ "main": "./src/index",
102
+ "name": "discord.js-selfv13",
103
+ "peerDependencies": {
104
+ "@discordjs/uws": "^10.149.0",
105
+ "bufferutil": "^4.0.0",
106
+ "erlpack": "discordapp/erlpack",
107
+ "libsodium-wrappers": "^0.7.3",
108
+ "node-opus": "^0.2.7",
109
+ "opusscript": "^0.0.6",
110
+ "sodium": "^2.0.3"
111
+ },
112
+ "peerDependenciesMeta": {
113
+ "bufferutil": {
114
+ "optional": true
115
+ },
116
+ "erlpack": {
117
+ "optional": true
118
+ },
119
+ "node-opus": {
120
+ "optional": true
121
+ },
122
+ "opusscript": {
123
+ "optional": true
124
+ },
125
+ "sodium": {
126
+ "optional": true
127
+ },
128
+ "libsodium-wrappers": {
129
+ "optional": true
130
+ },
131
+ "uws": {
132
+ "optional": true
133
+ }
134
+ },
135
+ "runkitExampleFilename": "./docs/examples/ping.js",
136
+ "scripts": {
137
+ "docs": "docgen --source src --custom docs/index.yml --output docs/docs.json",
138
+ "docs:test": "docgen --source src --custom docs/index.yml",
139
+ "lint": "eslint src",
140
+ "lint:fix": "eslint --fix src",
141
+ "lint:typings": "tslint typings/index.d.ts typings/discord.js-test.ts",
142
+ "test": "npm run lint && npm run docs:test",
143
+ "webpack": "parallel-webpack"
144
+ },
145
+ "types": "./typings/index.d.ts",
146
+ "version": "13.0.1"
147
+ }