Add Debug Commands

This commit is contained in:
2022-03-03 22:18:34 +07:00
parent be72e11e18
commit d1e4f2cf93
4 changed files with 143 additions and 87 deletions
+4 -1
View File
@@ -210,7 +210,10 @@ export class DiscordMusicPlayerInstance {
}
public async _fake_error_on_player() {
this.player.emit('error', new AudioPlayerError(new Error("fake error"), null!));
const stream = 'https://fakestream:42069/fake/stream/fake/audio/fake.mp3';
const resource = createAudioResource(stream);
this.player.play(resource);
this.player.emit('error', new AudioPlayerError(new Error("Music player was manually crashed"), null!));
}
}