magmastream 2.10.4 → 2.10.5-alpha.1
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.
|
@@ -438,7 +438,9 @@ class Manager extends events_1.EventEmitter {
|
|
|
438
438
|
const player = this.getPlayer(update.guild_id);
|
|
439
439
|
if (!player)
|
|
440
440
|
return;
|
|
441
|
-
this.
|
|
441
|
+
if (this.listenerCount(Enums_1.ManagerEventTypes.Debug)) {
|
|
442
|
+
this.emit(Enums_1.ManagerEventTypes.Debug, `[MANAGER] Updating voice state: ${Utils_1.JSONUtils.safe(update, 2)}`);
|
|
443
|
+
}
|
|
442
444
|
if ("token" in update) {
|
|
443
445
|
return await this.handleVoiceServerUpdate(player, update);
|
|
444
446
|
}
|
package/dist/structures/Node.js
CHANGED
|
@@ -1239,7 +1239,7 @@ class Node {
|
|
|
1239
1239
|
* @param {WebSocketClosedEvent} payload - The event payload containing additional data about the WebSocket close event.
|
|
1240
1240
|
*/
|
|
1241
1241
|
socketClosed(player, payload) {
|
|
1242
|
-
|
|
1242
|
+
// This may describe the old voice socket after a channel move, not a lifecycle disconnect.
|
|
1243
1243
|
this.manager.emit(Enums_1.ManagerEventTypes.SocketClosed, player, payload);
|
|
1244
1244
|
this.manager.emit(Enums_1.ManagerEventTypes.Debug, `[NODE] Websocket closed for player: ${player.guildId} with payload: ${Utils_1.JSONUtils.safe(payload, 2)}`);
|
|
1245
1245
|
}
|