diff --git a/voice/package.json b/voice/package.json index 4ab2bac..624be25 100644 --- a/voice/package.json +++ b/voice/package.json @@ -1,6 +1,6 @@ { "name": "@revkit/voice", - "version": "0.1.0", + "version": "0.1.1", "description": "Voice library for Revolt that works in the browser and node.js!", "main": "dist/cjs/index.js", "module": "dist/es6/index.js", diff --git a/voice/src/VoiceClient.ts b/voice/src/VoiceClient.ts index ed930cd..ab1735e 100644 --- a/voice/src/VoiceClient.ts +++ b/voice/src/VoiceClient.ts @@ -86,7 +86,6 @@ export class VoiceClient< this.supported = this.msc.detectDevice() !== undefined; if (client instanceof Client) { this.client = client; - this.sessionDetails = { token: this.client.session.token, type: this.client.session.type }; } else { this.client = new Client(client.apiURL ? { apiURL: client.apiURL } : undefined); this.sessionDetails = { token: client.token, type: client.type };