get the basic bot working
This commit is contained in:
parent
61c30986ea
commit
502fe11392
1 changed files with 2 additions and 1 deletions
|
@ -130,7 +130,8 @@ class BasicStreamDispatcher extends EventEmitter<VoiceEvents> {
|
|||
async playStream(resource: AudioResource<Track> = this.audioResource) {
|
||||
if (!resource) throw new PlayerError("Audio resource is not available!");
|
||||
if (!this.audioResource) this.audioResource = resource;
|
||||
if (this.voiceConnection.state.status !== VoiceConnectionStatus.Ready) await entersState(this.voiceConnection, VoiceConnectionStatus.Ready, 20000);
|
||||
if (this.voiceConnection.state.status !== VoiceConnectionStatus.Ready)
|
||||
await entersState(this.voiceConnection, VoiceConnectionStatus.Ready, 20000);
|
||||
this.audioPlayer.play(resource);
|
||||
|
||||
return this;
|
||||
|
|
Loading…
Reference in a new issue