feat: enhance media handling and audio processing logic
This commit is contained in:
@@ -41,14 +41,19 @@ export class DiscordPlayer {
|
||||
});
|
||||
|
||||
this.player.play(resource);
|
||||
this.connection?.subscribe(this.player);
|
||||
}
|
||||
|
||||
public getStatus(): AudioPlayerStatus {
|
||||
return this.player.state.status;
|
||||
}
|
||||
|
||||
public pause() {
|
||||
this.player.pause(true);
|
||||
}
|
||||
|
||||
public unpause() {
|
||||
this.player.unpause();
|
||||
public unpause(): boolean {
|
||||
return this.player.unpause();
|
||||
}
|
||||
|
||||
public stop() {
|
||||
|
||||
Reference in New Issue
Block a user