fix voice state updates (#461)

* fix voice state updates

* use .has for backwards compatability and consistency
This commit is contained in:
Jacob
2016-07-13 17:31:19 -07:00
committed by abal
parent cd2642c293
commit f49f1ab3c8
3 changed files with 14 additions and 14 deletions

View File

@@ -274,7 +274,7 @@ var Server = (function (_Equality) {
var chan = _ref3;
if (chan.members.has(user)) {
if (chan.members.has("id", user.id)) {
chan.members.remove(user);
user.voiceChannel = null;
return chan;

View File

@@ -6,23 +6,23 @@ exports.__esModule = true;
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
var TokenCacher = (function () {
function TokenCacher() {
_classCallCheck(this, TokenCacher);
}
function TokenCacher() {
_classCallCheck(this, TokenCacher);
}
TokenCacher.prototype.setToken = function setToken() {};
TokenCacher.prototype.setToken = function setToken() {};
TokenCacher.prototype.save = function save() {};
TokenCacher.prototype.save = function save() {};
TokenCacher.prototype.getToken = function getToken() {
return null;
};
TokenCacher.prototype.getToken = function getToken() {
return null;
};
TokenCacher.prototype.init = function init(ind) {
this.done = true;
};
TokenCacher.prototype.init = function init(ind) {
this.done = true;
};
return TokenCacher;
return TokenCacher;
})();
exports["default"] = TokenCacher;