streamify-audio 2.1.2 → 2.1.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "streamify-audio",
3
- "version": "2.1.2",
3
+ "version": "2.1.4",
4
4
  "description": "Dual-mode audio library: HTTP streaming proxy + Discord player (Lavalink alternative). Supports YouTube, Spotify, SoundCloud with audio filters.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -202,8 +202,8 @@ class Manager extends EventEmitter {
202
202
  log.info('MANAGER', `Session restored but auto-paused (empty channel)`);
203
203
  }
204
204
 
205
- this.emit('sessionRestored', { guildId, player, session });
206
- return player;
205
+ this.emit('sessionRestored', { guildId, voiceChannelId: player.voiceChannelId });
206
+ return true;
207
207
  }
208
208
 
209
209
  async restoreAllSessions(options = {}) {
@@ -214,9 +214,9 @@ class Manager extends EventEmitter {
214
214
 
215
215
  for (const session of sessions) {
216
216
  try {
217
- const player = await this.restoreSession(session.guildId, options);
218
- if (player) {
219
- restored.push({ guildId: session.guildId, player });
217
+ const success = await this.restoreSession(session.guildId, options);
218
+ if (success) {
219
+ restored.push({ guildId: session.guildId });
220
220
  }
221
221
  } catch (error) {
222
222
  log.error('MANAGER', `Failed to restore session ${session.guildId}: ${error.message}`);