Skip to content

Commit 0a92415

Browse files
authored
Merge pull request #156 from darkmxc/main
fix: reset paused state on stopPlaying
2 parents 49a7dd3 + a9a8d6d commit 0a92415

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/structures/Player.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,8 @@ export class Player {
559559

560560
// send to lavalink, that it should stop playing
561561
await this.node.updatePlayer({ guildId: this.guildId, playerOptions: { track: { encoded: null } } });
562+
// on some cases the sending of "stopplaying state" from lavalink does not happen, so we hardcode it, just to be sure.
563+
this.paused = false;
562564

563565
this.ping.lavalink = Math.round((performance.now() - now) / 10) / 100;
564566

@@ -891,3 +893,4 @@ export class Player {
891893
}
892894
}
893895

896+

0 commit comments

Comments
 (0)