Fixed PermissionOverwrites

This commit is contained in:
hydrabolt
2015-10-31 20:31:05 +00:00
parent 6064888f21
commit c5e5ab54db
15 changed files with 584 additions and 12 deletions

View File

@@ -23,19 +23,30 @@ var Client = (function (_EventEmitter) {
this.internal = new InternalClient(this);
}
/*
def login
*/
Client.prototype.login = function login(email, password) {
var cb = arguments.length <= 2 || arguments[2] === undefined ? function (err, token) {} : arguments[2];
var self = this;
return new Promise(function (resolve, reject) {
self.internal.login(email, password).then(function (token) {})["catch"](function (e) {
self.internal.login(email, password).then(function (token) {
cb(null, token);
resolve(token);
})["catch"](function (e) {
cb(e);
reject(e);
});
});
};
/*
*/
return Client;
})(EventEmitter);