mirror of
https://github.com/kirameki-cafe/Yumi.git
synced 2026-09-14 03:09:59 +00:00
Add Debug Commands
This commit is contained in:
@@ -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!));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user