mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Added Cache
This commit is contained in:
@@ -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 () { }) {
|
||||
|
||||
Reference in New Issue
Block a user