mirror of
https://github.com/kirameki-cafe/Yumi.git
synced 2026-09-13 10:49:20 +00:00
🐛 fix: Autoplay bug
This commit is contained in:
@@ -257,6 +257,7 @@ export class DiscordMusicPlayerInstance {
|
|||||||
this.discordPlayer.play(resource);
|
this.discordPlayer.play(resource);
|
||||||
this.nekoPlayer.startCurrentStream();
|
this.nekoPlayer.startCurrentStream();
|
||||||
this.events.emit('playing', new PlayerPlayingEvent(this));
|
this.events.emit('playing', new PlayerPlayingEvent(this));
|
||||||
|
});
|
||||||
|
|
||||||
this.discordPlayer.on('stateChange', (oldState, newState) => {
|
this.discordPlayer.on('stateChange', (oldState, newState) => {
|
||||||
console.log('State change', oldState.status, newState.status);
|
console.log('State change', oldState.status, newState.status);
|
||||||
@@ -264,7 +265,6 @@ export class DiscordMusicPlayerInstance {
|
|||||||
this.nekoPlayer.endCurrentStream();
|
this.nekoPlayer.endCurrentStream();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public joinVoiceChannel(
|
public joinVoiceChannel(
|
||||||
|
|||||||
Reference in New Issue
Block a user