refactor(ClientVoiceManager): make public, remove Client#voiceConnections (#3186)

* docs: make voice public

* typings: Update typings to match the docs

* typings: ClientVoiceManager is nullable in Client

Co-Authored-By: vladfrangu <kingdgrizzle@gmail.com>

* typings: Mark client as readonly

Co-Authored-By: vladfrangu <kingdgrizzle@gmail.com>

* src: Make the client readonly

* src: Remove Client#voiceConnections getter in favor of ClientVoiceManager#connections
This commit is contained in:
Vlad Frangu
2019-04-08 15:20:53 +03:00
committed by SpaceEEC
parent 152d2e88bd
commit 70d4b4455b
3 changed files with 17 additions and 18 deletions

View File

@@ -14,8 +14,10 @@ class ClientVoiceManager {
/**
* The client that instantiated this voice manager
* @type {Client}
* @readonly
* @name ClientVoiceManager#client
*/
this.client = client;
Object.defineProperty(this, 'client', { value: client });
/**
* A collection mapping connection IDs to the Connection objects