From bd0228bc71b5636f88bdf24fd5c28d7d775bc395 Mon Sep 17 00:00:00 2001 From: hydrabolt Date: Fri, 6 Nov 2015 20:46:11 +0000 Subject: [PATCH] Started basic work on voice --- lib/Client/InternalClient.js | 1 + lib/Voice/VoiceConnection.js | 9 +++++++++ src/Client/InternalClient.js | 1 + src/Voice/VoiceConnection.js | 9 +++++++++ 4 files changed, 20 insertions(+) create mode 100644 lib/Voice/VoiceConnection.js create mode 100644 src/Voice/VoiceConnection.js diff --git a/lib/Client/InternalClient.js b/lib/Client/InternalClient.js index e1ab0193a..19a46bd0b 100644 --- a/lib/Client/InternalClient.js +++ b/lib/Client/InternalClient.js @@ -43,6 +43,7 @@ var InternalClient = (function () { this.channels = new Cache(); this.servers = new Cache(); this.private_channels = new Cache(); + this.voiceConnections = new Cache(); this.resolver = new Resolver(this); } diff --git a/lib/Voice/VoiceConnection.js b/lib/Voice/VoiceConnection.js new file mode 100644 index 000000000..19ac044dd --- /dev/null +++ b/lib/Voice/VoiceConnection.js @@ -0,0 +1,9 @@ +"use strict"; + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +var VoiceConnection = function VoiceConnection() { + _classCallCheck(this, VoiceConnection); +}; + +module.exports = VoiceConnection; \ No newline at end of file diff --git a/src/Client/InternalClient.js b/src/Client/InternalClient.js index 13bc9ae38..32407bd00 100644 --- a/src/Client/InternalClient.js +++ b/src/Client/InternalClient.js @@ -39,6 +39,7 @@ class InternalClient { this.channels = new Cache(); this.servers = new Cache(); this.private_channels = new Cache(); + this.voiceConnections = new Cache(); this.resolver = new Resolver(this); } // def createServer diff --git a/src/Voice/VoiceConnection.js b/src/Voice/VoiceConnection.js new file mode 100644 index 000000000..bb2450d53 --- /dev/null +++ b/src/Voice/VoiceConnection.js @@ -0,0 +1,9 @@ +"use strict"; + +class VoiceConnection{ + constructor(){ + + } +} + +module.exports = VoiceConnection; \ No newline at end of file