Skip to content

Commit 78ace04

Browse files
committed
fix(Player): start & end defaults should be undefined
otherwise lavalink will not play songs correctly and instnatly fire the "stuck" event
1 parent 9fa347f commit 78ace04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/core/Player.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export default class Player<T extends BaseNode = BaseNode> extends EventEmitter
152152
})
153153
}
154154

155-
public async play(track: string | Track, { start = 0, end = 0, noReplace, pause }: PlayerOptions = {}) {
155+
public async play(track: string | Track, { start, end, noReplace, pause }: PlayerOptions = {}) {
156156
await this.send('play', {
157157
track: typeof track === 'object' ? track.track : track,
158158
startTime: start,

0 commit comments

Comments
 (0)