mirror of
https://github.com/danbulant/discord.js
synced 2026-06-19 06:31:20 +00:00
Added Cache
This commit is contained in:
parent
7de44fb9ac
commit
7b2f4e3357
2 changed files with 7 additions and 0 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -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 () { }) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue