streamify-audio 2.1.3 → 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 +1 -1
- package/src/discord/Manager.js +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "streamify-audio",
|
|
3
|
-
"version": "2.1.
|
|
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",
|
package/src/discord/Manager.js
CHANGED
|
@@ -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
|
|
206
|
-
return
|
|
205
|
+
this.emit('sessionRestored', { guildId, voiceChannelId: player.voiceChannelId });
|
|
206
|
+
return true;
|
|
207
207
|
}
|
|
208
208
|
|
|
209
209
|
async restoreAllSessions(options = {}) {
|
|
@@ -214,8 +214,8 @@ class Manager extends EventEmitter {
|
|
|
214
214
|
|
|
215
215
|
for (const session of sessions) {
|
|
216
216
|
try {
|
|
217
|
-
const
|
|
218
|
-
if (
|
|
217
|
+
const success = await this.restoreSession(session.guildId, options);
|
|
218
|
+
if (success) {
|
|
219
219
|
restored.push({ guildId: session.guildId });
|
|
220
220
|
}
|
|
221
221
|
} catch (error) {
|