Skip to content

Commit

Permalink
Bump deps and fix sessionId being set to undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
PapiOphidian committed Nov 17, 2023
1 parent 8a86ba5 commit 2c40af5
Show file tree
Hide file tree
Showing 3 changed files with 226 additions and 198 deletions.
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lavacord",
"version": "2.1.0-v4",
"version": "2.1.1-v4",
"description": "A simple by design lavalink wrapper made for any discord library.",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down Expand Up @@ -35,26 +35,26 @@
"homepage": "https://github.com/MrJacz/lavacord#readme",
"dependencies": {
"lavalink-types": "^2.1.0",
"undici": "^5.22.1",
"ws": "^8.13.0"
"undici": "^5.27.2",
"ws": "^8.14.2"
},
"devDependencies": {
"@types/node": "^20.4.1",
"@types/ws": "^8.5.5",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"eslint": "^8.44.0",
"@types/node": "^20.9.1",
"@types/ws": "^8.5.9",
"@typescript-eslint/eslint-plugin": "^6.11.0",
"@typescript-eslint/parser": "^6.11.0",
"eslint": "^8.53.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.1.1",
"typedoc": "^0.24.8",
"typescript": "^5.1.6"
"typedoc": "^0.25.3",
"typescript": "^5.2.2"
},
"optionalDependencies": {
"discord.js": "14.x",
"eris": "0.17.x",
"detritus-client": "0.16.x",
"cloudstorm": "0.8.x",
"oceanic.js": "1.7.1"
"cloudstorm": "0.9.x",
"oceanic.js": "1.8.1"
},
"files": [
"dist",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/LavalinkNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export class LavalinkNode {
const msg: WebsocketMessage = JSON.parse(str);

if (msg.op === "ready") {
this.sessionId = msg.sessionId;
if (msg.sessionId) this.sessionId = msg.sessionId;
if (!this._sessionUpdated) {
this._sessionUpdated = true;
Rest.updateSession(this).catch(e => this.manager.emit("error", e, this));
Expand Down
Loading

0 comments on commit 2c40af5

Please sign in to comment.