@zygout/eris 0.19.0 → 0.19.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.
Files changed (88) hide show
  1. package/LICENSE +20 -20
  2. package/README.md +71 -80
  3. package/esm.mjs +72 -72
  4. package/index.d.ts +4407 -4397
  5. package/index.js +75 -75
  6. package/lib/Client.js +4708 -4683
  7. package/lib/Constants.d.ts +990 -988
  8. package/lib/Constants.js +1163 -1161
  9. package/lib/command/Command.js +552 -552
  10. package/lib/command/CommandClient.js +460 -460
  11. package/lib/errors/DiscordHTTPError.js +63 -63
  12. package/lib/errors/DiscordRESTError.js +77 -77
  13. package/lib/gateway/Shard.js +3029 -3029
  14. package/lib/gateway/ShardManager.js +164 -164
  15. package/lib/rest/Endpoints.js +172 -172
  16. package/lib/rest/RequestHandler.js +459 -459
  17. package/lib/structures/ApplicationCommand.js +125 -125
  18. package/lib/structures/AutoModerationRule.js +143 -143
  19. package/lib/structures/AutocompleteInteraction.js +80 -80
  20. package/lib/structures/Base.js +81 -81
  21. package/lib/structures/CategoryChannel.js +77 -77
  22. package/lib/structures/Channel.js +98 -98
  23. package/lib/structures/CommandInteraction.js +473 -473
  24. package/lib/structures/ComponentInteraction.js +538 -538
  25. package/lib/structures/DMChannel.js +278 -278
  26. package/lib/structures/Entitlement.js +77 -77
  27. package/lib/structures/ExtendedUser.js +46 -46
  28. package/lib/structures/ForumChannel.js +24 -24
  29. package/lib/structures/GroupChannel.js +106 -106
  30. package/lib/structures/Guild.js +1677 -1677
  31. package/lib/structures/GuildAuditLogEntry.js +190 -190
  32. package/lib/structures/GuildChannel.js +128 -128
  33. package/lib/structures/GuildIntegration.js +99 -99
  34. package/lib/structures/GuildPreview.js +97 -97
  35. package/lib/structures/GuildScheduledEvent.js +176 -176
  36. package/lib/structures/GuildTemplate.js +76 -76
  37. package/lib/structures/GuildTextableChannel.js +260 -260
  38. package/lib/structures/Interaction.js +133 -133
  39. package/lib/structures/Invite.js +143 -143
  40. package/lib/structures/Lobby.js +108 -108
  41. package/lib/structures/LobbyMember.js +59 -59
  42. package/lib/structures/MediaChannel.js +216 -216
  43. package/lib/structures/Member.js +371 -371
  44. package/lib/structures/Message.js +708 -708
  45. package/lib/structures/ModalSubmitInteraction.js +478 -478
  46. package/lib/structures/NewsChannel.js +34 -34
  47. package/lib/structures/NewsThreadChannel.js +12 -12
  48. package/lib/structures/Permission.js +80 -80
  49. package/lib/structures/PermissionOverwrite.js +32 -32
  50. package/lib/structures/PingInteraction.js +39 -39
  51. package/lib/structures/PrivateThreadChannel.js +25 -25
  52. package/lib/structures/PublicThreadChannel.js +26 -26
  53. package/lib/structures/Role.js +163 -163
  54. package/lib/structures/SKU.js +80 -80
  55. package/lib/structures/SoundboardSound.js +79 -79
  56. package/lib/structures/StageChannel.js +59 -59
  57. package/lib/structures/StageInstance.js +55 -55
  58. package/lib/structures/Subscription.js +69 -69
  59. package/lib/structures/TextChannel.js +202 -202
  60. package/lib/structures/ThreadChannel.js +143 -143
  61. package/lib/structures/ThreadMember.js +59 -59
  62. package/lib/structures/UnavailableGuild.js +26 -26
  63. package/lib/structures/UnknownInteraction.js +502 -502
  64. package/lib/structures/User.js +296 -296
  65. package/lib/structures/VoiceChannel.js +166 -166
  66. package/lib/structures/VoiceState.js +84 -84
  67. package/lib/util/BrowserWebSocket.js +76 -76
  68. package/lib/util/Bucket.js +89 -89
  69. package/lib/util/Collection.js +202 -202
  70. package/lib/util/MultipartData.js +70 -70
  71. package/lib/util/Opus.js +33 -33
  72. package/lib/util/SequentialBucket.js +83 -83
  73. package/lib/util/emitDeprecation.js +26 -26
  74. package/lib/voice/Piper.js +300 -300
  75. package/lib/voice/SharedStream.js +238 -238
  76. package/lib/voice/VoiceConnection.js +1440 -1440
  77. package/lib/voice/VoiceConnectionManager.js +151 -151
  78. package/lib/voice/VoiceDataStream.js +22 -22
  79. package/lib/voice/streams/BaseTransformer.js +40 -40
  80. package/lib/voice/streams/DCAOpusTransformer.js +78 -78
  81. package/lib/voice/streams/FFmpegDuplex.js +192 -192
  82. package/lib/voice/streams/FFmpegOggTransformer.js +35 -35
  83. package/lib/voice/streams/FFmpegPCMTransformer.js +26 -26
  84. package/lib/voice/streams/OggOpusTransformer.js +108 -108
  85. package/lib/voice/streams/PCMOpusTransformer.js +61 -61
  86. package/lib/voice/streams/VolumeTransformer.js +50 -50
  87. package/lib/voice/streams/WebmOpusTransformer.js +258 -258
  88. package/package.json +83 -82
package/package.json CHANGED
@@ -1,82 +1,83 @@
1
- {
2
- "name": "@zygout/eris",
3
- "version": "0.19.0",
4
- "description": "A Node.js Discord library, a maintained fork of Eris",
5
- "main": "./index.js",
6
- "exports": {
7
- ".": [
8
- {
9
- "require": "./index.js",
10
- "import": "./esm.mjs"
11
- },
12
- "./index.js"
13
- ],
14
- "./*": "./*.js",
15
- "./esm": "./esm.mjs"
16
- },
17
- "typings": "./index.d.ts",
18
- "engines": {
19
- "node": ">=10.4.0"
20
- },
21
- "scripts": {
22
- "format": "eslint --fix lib examples \"*.{js,mjs,ts}\"",
23
- "lint": "eslint --max-warnings 0 lib examples \"*.{js,mjs,ts}\""
24
- },
25
- "repository": {
26
- "type": "git",
27
- "url": "git+https://github.com/ZyGout/eris.git"
28
- },
29
- "keywords": [
30
- "api",
31
- "discord",
32
- "discordapp",
33
- "eris",
34
- "wrapper"
35
- ],
36
- "author": "abalabahaha",
37
- "contributors": [
38
- "ZyGout"
39
- ],
40
- "license": "MIT",
41
- "bugs": {
42
- "url": "https://github.com/ZyGout/eris/issues"
43
- },
44
- "homepage": "https://github.com/ZyGout/eris#readme",
45
- "publishConfig": {
46
- "access": "public"
47
- },
48
- "dependencies": {
49
- "ws": "^8.2.3"
50
- },
51
- "devDependencies": {
52
- "@eslint/js": "^9.9.1",
53
- "@stylistic/eslint-plugin": "^2.6.4",
54
- "@types/eslint__js": "^8.42.3",
55
- "@types/node": "^16.11.7",
56
- "@types/ws": "^8.2.0",
57
- "eslint": "^9.9.1",
58
- "eslint-plugin-jsdoc": "^50.2.2",
59
- "eslint-plugin-sort-class-members": "^1.20.0",
60
- "globals": "^15.9.0",
61
- "typescript": "^5.5.3",
62
- "typescript-eslint": "^8.2.0"
63
- },
64
- "optionalDependencies": {
65
- "@snazzah/davey": "^0.2.0",
66
- "@stablelib/xchacha20poly1305": "~1.0.1",
67
- "opusscript": "^0.0.8"
68
- },
69
- "browser": {
70
- "@discordjs/opus": false,
71
- "@snazzah/davey": false,
72
- "@stablelib/xchacha20poly1305": false,
73
- "child_process": false,
74
- "crypto": false,
75
- "dgram": false,
76
- "dns": false,
77
- "fs": false,
78
- "sodium-native": false,
79
- "tls": false,
80
- "ws": false
81
- }
82
- }
1
+ {
2
+ "name": "@zygout/eris",
3
+ "version": "0.19.2",
4
+ "description": "A Node.js Discord library, a maintained fork of Eris",
5
+ "main": "./index.js",
6
+ "exports": {
7
+ ".": [
8
+ {
9
+ "require": "./index.js",
10
+ "import": "./esm.mjs"
11
+ },
12
+ "./index.js"
13
+ ],
14
+ "./*": "./*.js",
15
+ "./esm": "./esm.mjs"
16
+ },
17
+ "typings": "./index.d.ts",
18
+ "engines": {
19
+ "node": ">=10.4.0"
20
+ },
21
+ "scripts": {
22
+ "format": "eslint --fix lib examples \"*.{js,mjs,ts}\"",
23
+ "lint": "eslint --max-warnings 0 lib examples \"*.{js,mjs,ts}\"",
24
+ "typecheck": "tsc -p . --noEmit"
25
+ },
26
+ "repository": {
27
+ "type": "git",
28
+ "url": "git+https://github.com/ZyGout/eris.git"
29
+ },
30
+ "keywords": [
31
+ "api",
32
+ "discord",
33
+ "discordapp",
34
+ "eris",
35
+ "wrapper"
36
+ ],
37
+ "author": "abalabahaha",
38
+ "contributors": [
39
+ "ZyGout"
40
+ ],
41
+ "license": "MIT",
42
+ "bugs": {
43
+ "url": "https://github.com/ZyGout/eris/issues"
44
+ },
45
+ "homepage": "https://github.com/ZyGout/eris#readme",
46
+ "publishConfig": {
47
+ "access": "public"
48
+ },
49
+ "dependencies": {
50
+ "ws": "^8.2.3"
51
+ },
52
+ "devDependencies": {
53
+ "@eslint/js": "^9.9.1",
54
+ "@stylistic/eslint-plugin": "^2.6.4",
55
+ "@types/eslint__js": "^8.42.3",
56
+ "@types/node": "^18.19.0",
57
+ "@types/ws": "^8.2.0",
58
+ "eslint": "^9.9.1",
59
+ "eslint-plugin-jsdoc": "^50.2.2",
60
+ "eslint-plugin-sort-class-members": "^1.20.0",
61
+ "globals": "^15.9.0",
62
+ "typescript": "^5.5.3",
63
+ "typescript-eslint": "^8.2.0"
64
+ },
65
+ "optionalDependencies": {
66
+ "@snazzah/davey": "^0.2.0",
67
+ "@stablelib/xchacha20poly1305": "~1.0.1",
68
+ "opusscript": "^0.0.8"
69
+ },
70
+ "browser": {
71
+ "@discordjs/opus": false,
72
+ "@snazzah/davey": false,
73
+ "@stablelib/xchacha20poly1305": false,
74
+ "child_process": false,
75
+ "crypto": false,
76
+ "dgram": false,
77
+ "dns": false,
78
+ "fs": false,
79
+ "sodium-native": false,
80
+ "tls": false,
81
+ "ws": false
82
+ }
83
+ }