Skip to content

Commit

Permalink
Merge pull request #424 from Magmastream-NPM/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
SxMAbel authored Feb 26, 2025
2 parents 9563dbf + f56b019 commit 2f89657
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/structures/Player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
}

Expand Down
2 changes: 1 addition & 1 deletion src/structures/Queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class Queue extends Array<Track> {
public current: Track | null = null;

/** The previous tracks */
public previous: Track[] | null = null;
public previous: Track[] = [];

/** The Manager instance. */
public manager: Manager;
Expand Down

0 comments on commit 2f89657

Please sign in to comment.