bert
bert
DIdiscord.js - Imagine ❄
Created by bert on 11/22/2024 in #djs-voice
Player state changes to "playing" when resource ends
Thanks
12 replies
DIdiscord.js - Imagine ❄
Created by bert on 11/22/2024 in #djs-voice
Player state changes to "playing" when resource ends
I just discovered that digging thru the code
12 replies
DIdiscord.js - Imagine ❄
Created by bert on 11/22/2024 in #djs-voice
Player state changes to "playing" when resource ends
Ah
12 replies
DIdiscord.js - Imagine ❄
Created by bert on 11/22/2024 in #djs-voice
Player state changes to "playing" when resource ends
It logs "buffering" when the player starts playing, and "playing" when the resource ends
12 replies
DIdiscord.js - Imagine ❄
Created by bert on 11/22/2024 in #djs-voice
Player state changes to "playing" when resource ends
or something to that effect
12 replies
DIdiscord.js - Imagine ❄
Created by bert on 11/22/2024 in #djs-voice
Player state changes to "playing" when resource ends
even though it is supposed to log "stopped"
12 replies
DIdiscord.js - Imagine ❄
Created by bert on 11/22/2024 in #djs-voice
Player state changes to "playing" when resource ends
Every time a resource ends, "playing" is logged
12 replies
DIdiscord.js - Imagine ❄
Created by bert on 11/22/2024 in #djs-voice
Player state changes to "playing" when resource ends
player.on('stateChange', listener => {
console.log(listener.status);

if (listener.status == voice.AudioPlayerStatus.Idle) {
this.playing = false;
this.textChannel = null;

if (this.queue.length !== 0) {
let next = this.queue.shift();

this.bot.emit('queuePlay', next, channel);

this.play(next, channel);
} else {
console.log("Done");
}
}
})
player.on('stateChange', listener => {
console.log(listener.status);

if (listener.status == voice.AudioPlayerStatus.Idle) {
this.playing = false;
this.textChannel = null;

if (this.queue.length !== 0) {
let next = this.queue.shift();

this.bot.emit('queuePlay', next, channel);

this.play(next, channel);
} else {
console.log("Done");
}
}
})
12 replies
DIdiscord.js - Imagine ❄
Created by bert on 11/22/2024 in #djs-voice
Player state changes to "playing" when resource ends
Here's code
12 replies
DIdiscord.js - Imagine ❄
Created by Fallen on 5/25/2023 in #djs-voice
Audio Player state changes to playing when resource ends
could you please answer the question?
5 replies
DIdiscord.js - Imagine ❄
Created by Fallen on 5/25/2023 in #djs-voice
Audio Player state changes to playing when resource ends
I get this problem too
5 replies