Merge branch 'v5' of https://github.com/Androz2091/discord-player into v5
This commit is contained in:
commit
6b68c24d22
3 changed files with 4 additions and 2 deletions
2
.github/workflows/publish-dev.yml
vendored
2
.github/workflows/publish-dev.yml
vendored
|
@ -25,7 +25,7 @@ jobs:
|
|||
- name: Deprecate old releases
|
||||
run: npm deprecate discord-player@"~5.0.0-dev" "outdated version" || true
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
|
||||
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}
|
||||
|
||||
- name: Publish
|
||||
run: |
|
||||
|
|
|
@ -500,4 +500,4 @@ class Player extends EventEmitter<PlayerEvents> {
|
|||
}
|
||||
}
|
||||
|
||||
export { Player };
|
||||
export { Player };
|
|
@ -169,6 +169,8 @@ class Queue<T = unknown> {
|
|||
this._streamTime = 0;
|
||||
if (resource && resource.metadata) this.previousTracks.push(resource.metadata);
|
||||
|
||||
this.player.emit("trackEnd", this, resource.metadata);
|
||||
|
||||
if (!this.tracks.length && this.repeatMode === QueueRepeatMode.OFF) {
|
||||
if (this.options.leaveOnEnd) this.destroy();
|
||||
this.player.emit("queueEnd", this);
|
||||
|
|
Loading…
Reference in a new issue