Added role shortcuts and to user also

This commit is contained in:
Amish Shah
2015-12-05 16:57:58 +00:00
parent f95822dcb7
commit 5a971ba097
28 changed files with 132 additions and 25 deletions

View File

@@ -12,6 +12,8 @@ var _ServerChannel2 = require("./ServerChannel");
var _ServerChannel3 = _interopRequireDefault(_ServerChannel2);
var _UtilArgumentRegulariser = require("../Util/ArgumentRegulariser");
var VoiceChannel = (function (_ServerChannel) {
_inherits(VoiceChannel, _ServerChannel);
@@ -21,8 +23,14 @@ var VoiceChannel = (function (_ServerChannel) {
_ServerChannel.call(this, data, client, server);
}
VoiceChannel.prototype.join = function join() {
var callback = arguments.length <= 0 || arguments[0] === undefined ? function () {} : arguments[0];
return this.client.joinVoiceChannel.apply(this.client, [this, callback]);
};
return VoiceChannel;
})(_ServerChannel3["default"]);
exports["default"] = VoiceChannel;
module.exports = exports["default"];
module.exports = exports["default"];