@discordjs/voice 1.0.0-dev.1790035407-dbb749062 → 1.0.0-dev.1790769779-eec9b8f9a
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.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2316,6 +2316,9 @@ var VoiceConnection = class extends EventEmitter8 {
|
|
|
2316
2316
|
if (packet.self_deaf !== void 0) this.joinConfig.selfDeaf = packet.self_deaf;
|
|
2317
2317
|
if (packet.self_mute !== void 0) this.joinConfig.selfMute = packet.self_mute;
|
|
2318
2318
|
if (packet.channel_id) this.joinConfig.channelId = packet.channel_id;
|
|
2319
|
+
if (packet.channel_id && this.state.status === "signalling" /* Signalling */) {
|
|
2320
|
+
this.configureNetworking();
|
|
2321
|
+
}
|
|
2319
2322
|
}
|
|
2320
2323
|
/**
|
|
2321
2324
|
* Called when the networking state changes, and the new ws/udp packet/message handlers need to be rebound
|
|
@@ -3051,7 +3054,7 @@ __name(findPackageJSON, "findPackageJSON");
|
|
|
3051
3054
|
function version(name) {
|
|
3052
3055
|
try {
|
|
3053
3056
|
if (name === "@discordjs/voice") {
|
|
3054
|
-
return "1.0.0-dev.
|
|
3057
|
+
return "1.0.0-dev.1790769779-eec9b8f9a";
|
|
3055
3058
|
}
|
|
3056
3059
|
const pkg = findPackageJSON(dirname(__require.resolve(name)), name, 3);
|
|
3057
3060
|
return pkg?.version ?? "not found";
|
|
@@ -3199,7 +3202,7 @@ async function demuxProbe(stream, probeSize = 1024, validator = validateDiscordO
|
|
|
3199
3202
|
__name(demuxProbe, "demuxProbe");
|
|
3200
3203
|
|
|
3201
3204
|
// src/index.ts
|
|
3202
|
-
var version2 = "1.0.0-dev.
|
|
3205
|
+
var version2 = "1.0.0-dev.1790769779-eec9b8f9a";
|
|
3203
3206
|
export {
|
|
3204
3207
|
AudioPacket,
|
|
3205
3208
|
AudioPlayer,
|