@discordjs/voice 0.11.0-dev.1656547800-27d8deb → 0.11.0-dev.1656677097-741b3c8

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/dist/index.d.ts CHANGED
@@ -617,7 +617,7 @@ declare class VoiceUDPSocket extends EventEmitter$1 {
617
617
  /**
618
618
  * Called when a message is received on the UDP socket.
619
619
  *
620
- * @param buffer The received buffer
620
+ * @param buffer - The received buffer
621
621
  */
622
622
  private onMessage;
623
623
  /**
@@ -1053,19 +1053,19 @@ declare class SSRCMap extends EventEmitter$1 {
1053
1053
  /**
1054
1054
  * Updates the map with new user data
1055
1055
  *
1056
- * @param data The data to update with
1056
+ * @param data - The data to update with
1057
1057
  */
1058
1058
  update(data: VoiceUserData): void;
1059
1059
  /**
1060
1060
  * Gets the stored voice data of a user.
1061
1061
  *
1062
- * @param target The target, either their user id or audio SSRC
1062
+ * @param target - The target, either their user id or audio SSRC
1063
1063
  */
1064
1064
  get(target: number | string): VoiceUserData | undefined;
1065
1065
  /**
1066
1066
  * Deletes the stored voice data about a user.
1067
1067
  *
1068
- * @param target The target of the delete operation, either their audio SSRC or user id
1068
+ * @param target - The target of the delete operation, either their audio SSRC or user id
1069
1069
  *
1070
1070
  * @returns The data that was deleted, if any
1071
1071
  */
@@ -1130,7 +1130,7 @@ declare class VoiceReceiver {
1130
1130
  /**
1131
1131
  * Called when a packet is received on the attached connection's WebSocket.
1132
1132
  *
1133
- * @param packet The received packet
1133
+ * @param packet - The received packet
1134
1134
  *
1135
1135
  * @internal
1136
1136
  */
@@ -1139,10 +1139,10 @@ declare class VoiceReceiver {
1139
1139
  /**
1140
1140
  * Parses an audio packet, decrypting it to yield an Opus packet.
1141
1141
  *
1142
- * @param buffer The buffer to parse
1143
- * @param mode The encryption mode
1144
- * @param nonce The nonce buffer used by the connection for encryption
1145
- * @param secretKey The secret key used by the connection for encryption
1142
+ * @param buffer - The buffer to parse
1143
+ * @param mode - The encryption mode
1144
+ * @param nonce - The nonce buffer used by the connection for encryption
1145
+ * @param secretKey - The secret key used by the connection for encryption
1146
1146
  *
1147
1147
  * @returns The parsed Opus packet
1148
1148
  */
@@ -1150,7 +1150,7 @@ declare class VoiceReceiver {
1150
1150
  /**
1151
1151
  * Called when the UDP socket of the attached connection receives a message.
1152
1152
  *
1153
- * @param msg The received message
1153
+ * @param msg - The received message
1154
1154
  *
1155
1155
  * @internal
1156
1156
  */
@@ -1158,7 +1158,7 @@ declare class VoiceReceiver {
1158
1158
  /**
1159
1159
  * Creates a subscription for the given user id.
1160
1160
  *
1161
- * @param target The id of the user to subscribe to
1161
+ * @param target - The id of the user to subscribe to
1162
1162
  *
1163
1163
  * @returns A readable stream of Opus packets received from the target
1164
1164
  */
@@ -1615,7 +1615,7 @@ declare function entersState(target: AudioPlayer, status: AudioPlayerStatus, tim
1615
1615
  /**
1616
1616
  * Takes an Opus Head, and verifies whether the associated Opus audio is suitable to play in a Discord voice channel.
1617
1617
  *
1618
- * @param opusHead The Opus Head to validate
1618
+ * @param opusHead - The Opus Head to validate
1619
1619
  *
1620
1620
  * @returns `true` if suitable to play in a Discord voice channel, otherwise `false`
1621
1621
  */
@@ -1637,9 +1637,9 @@ interface ProbeInfo {
1637
1637
  /**
1638
1638
  * Attempt to probe a readable stream to figure out whether it can be demuxed using an Ogg or WebM Opus demuxer.
1639
1639
  *
1640
- * @param stream The readable stream to probe
1641
- * @param probeSize The number of bytes to attempt to read before giving up on the probe
1642
- * @param validator The Opus Head validator function
1640
+ * @param stream - The readable stream to probe
1641
+ * @param probeSize - The number of bytes to attempt to read before giving up on the probe
1642
+ * @param validator - The Opus Head validator function
1643
1643
  *
1644
1644
  * @experimental
1645
1645
  */
package/dist/index.js CHANGED
@@ -35,14 +35,14 @@ var require_package = __commonJS({
35
35
  "package.json"(exports, module2) {
36
36
  module2.exports = {
37
37
  name: "@discordjs/voice",
38
- version: "0.11.0-dev.1656547800-27d8deb",
38
+ version: "0.11.0-dev.1656677097-741b3c8",
39
39
  description: "Implementation of the Discord Voice API for node.js",
40
40
  scripts: {
41
41
  build: "tsup && node scripts/postbuild.mjs",
42
42
  test: "jest --coverage",
43
43
  lint: "prettier --cache --check . && eslint src __tests__ --ext mjs,js,ts --cache",
44
44
  format: "prettier --cache --write . && eslint src __tests__ --ext mjs,js,ts --fix --cache",
45
- docs: "docgen -i src/index.ts -c docs/index.json -o docs/docs.json --typescript",
45
+ docs: "docgen -i src/index.ts -c docs/index.json -o docs/docs.json --typescript && api-extractor run --local",
46
46
  prepack: "yarn build && yarn lint && yarn test",
47
47
  changelog: "git cliff --prepend ./CHANGELOG.md -u -c ./cliff.toml -r ../../ --include-path 'packages/voice/*'",
48
48
  release: "cliff-jumper"
@@ -99,6 +99,7 @@ var require_package = __commonJS({
99
99
  "@discordjs/docgen": "workspace:^",
100
100
  "@discordjs/scripts": "workspace:^",
101
101
  "@favware/cliff-jumper": "^1.8.3",
102
+ "@microsoft/api-extractor": "^7.28.2",
102
103
  "@types/jest": "^28.1.2",
103
104
  eslint: "^8.18.0",
104
105
  jest: "^28.1.1",