Skip to content

Commit 2f89657

Browse files
authored
Merge pull request #424 from Magmastream-NPM/dev
2 parents 9563dbf + f56b019 commit 2f89657

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "magmastream",
3-
"version": "2.8.4",
3+
"version": "2.8.5",
44
"description": "A user-friendly Lavalink client designed for NodeJS.",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

src/structures/Player.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ export class Player {
403403
throw new TypeError("botUser must be provided when enabling autoplay.");
404404
}
405405

406-
if (!(botUser instanceof ClientUser) || !(botUser instanceof User)) {
406+
if (!(botUser instanceof ClientUser) && !(botUser instanceof User)) {
407407
throw new TypeError("botUser must be a user-object.");
408408
}
409409

src/structures/Queue.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export class Queue extends Array<Track> {
3939
public current: Track | null = null;
4040

4141
/** The previous tracks */
42-
public previous: Track[] | null = null;
42+
public previous: Track[] = [];
4343

4444
/** The Manager instance. */
4545
public manager: Manager;

0 commit comments

Comments
 (0)