mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 19:43:29 +01:00
Added Cache
This commit is contained in:
@@ -12,6 +12,10 @@ var _ServerChannel2 = require("./ServerChannel");
|
|||||||
|
|
||||||
var _ServerChannel3 = _interopRequireDefault(_ServerChannel2);
|
var _ServerChannel3 = _interopRequireDefault(_ServerChannel2);
|
||||||
|
|
||||||
|
var _UtilCache = require("../Util/Cache");
|
||||||
|
|
||||||
|
var _UtilCache2 = _interopRequireDefault(_UtilCache);
|
||||||
|
|
||||||
var _UtilArgumentRegulariser = require("../Util/ArgumentRegulariser");
|
var _UtilArgumentRegulariser = require("../Util/ArgumentRegulariser");
|
||||||
|
|
||||||
var VoiceChannel = (function (_ServerChannel) {
|
var VoiceChannel = (function (_ServerChannel) {
|
||||||
@@ -21,6 +25,7 @@ var VoiceChannel = (function (_ServerChannel) {
|
|||||||
_classCallCheck(this, VoiceChannel);
|
_classCallCheck(this, VoiceChannel);
|
||||||
|
|
||||||
_ServerChannel.call(this, data, client, server);
|
_ServerChannel.call(this, data, client, server);
|
||||||
|
this.speaking = new _UtilCache2["default"]();
|
||||||
}
|
}
|
||||||
|
|
||||||
VoiceChannel.prototype.join = function join() {
|
VoiceChannel.prototype.join = function join() {
|
||||||
|
|||||||
@@ -1,11 +1,13 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
import ServerChannel from "./ServerChannel";
|
import ServerChannel from "./ServerChannel";
|
||||||
|
import Cache from "../Util/Cache";
|
||||||
import {reg} from "../Util/ArgumentRegulariser";
|
import {reg} from "../Util/ArgumentRegulariser";
|
||||||
|
|
||||||
export default class VoiceChannel extends ServerChannel{
|
export default class VoiceChannel extends ServerChannel{
|
||||||
constructor(data, client, server){
|
constructor(data, client, server){
|
||||||
super(data, client, server);
|
super(data, client, server);
|
||||||
|
this.speaking = new Cache();
|
||||||
}
|
}
|
||||||
|
|
||||||
join(callback = function () { }) {
|
join(callback = function () { }) {
|
||||||
|
|||||||
Reference in New Issue
Block a user