diff --git a/package-lock.json b/package-lock.json index d3bc96d0..0ae8343e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "magmastream", - "version": "2.8.4", + "version": "2.8.5", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "magmastream", - "version": "2.8.4", + "version": "2.8.5", "license": "Apache-2.0", "dependencies": { "@discordjs/collection": "^2.1.1", diff --git a/package.json b/package.json index 7c5582b1..bdd95af4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "magmastream", - "version": "2.8.4", + "version": "2.8.5", "description": "A user-friendly Lavalink client designed for NodeJS.", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/structures/Player.ts b/src/structures/Player.ts index ec281798..d9aaecec 100644 --- a/src/structures/Player.ts +++ b/src/structures/Player.ts @@ -403,7 +403,7 @@ export class Player { throw new TypeError("botUser must be provided when enabling autoplay."); } - if (!(botUser instanceof ClientUser) || !(botUser instanceof User)) { + if (!(botUser instanceof ClientUser) && !(botUser instanceof User)) { throw new TypeError("botUser must be a user-object."); } diff --git a/src/structures/Queue.ts b/src/structures/Queue.ts index 9e7d1a5f..fbafe5f1 100644 --- a/src/structures/Queue.ts +++ b/src/structures/Queue.ts @@ -39,7 +39,7 @@ export class Queue extends Array { public current: Track | null = null; /** The previous tracks */ - public previous: Track[] | null = null; + public previous: Track[] = []; /** The Manager instance. */ public manager: Manager;