Added Cache

This commit is contained in:
Amish Shah
2015-12-26 15:12:58 +00:00
parent 7de44fb9ac
commit 7b2f4e3357
2 changed files with 7 additions and 0 deletions

View File

@@ -12,6 +12,10 @@ var _ServerChannel2 = require("./ServerChannel");
var _ServerChannel3 = _interopRequireDefault(_ServerChannel2);
var _UtilCache = require("../Util/Cache");
var _UtilCache2 = _interopRequireDefault(_UtilCache);
var _UtilArgumentRegulariser = require("../Util/ArgumentRegulariser");
var VoiceChannel = (function (_ServerChannel) {
@@ -21,6 +25,7 @@ var VoiceChannel = (function (_ServerChannel) {
_classCallCheck(this, VoiceChannel);
_ServerChannel.call(this, data, client, server);
this.speaking = new _UtilCache2["default"]();
}
VoiceChannel.prototype.join = function join() {

View File

@@ -1,11 +1,13 @@
"use strict";
import ServerChannel from "./ServerChannel";
import Cache from "../Util/Cache";
import {reg} from "../Util/ArgumentRegulariser";
export default class VoiceChannel extends ServerChannel{
constructor(data, client, server){
super(data, client, server);
this.speaking = new Cache();
}
join(callback = function () { }) {