Add getOAuthApplication()

This commit is contained in:
abalabahaha
2016-07-29 01:05:01 -07:00
parent 34f71eaba1
commit 810059200c
5 changed files with 47 additions and 0 deletions

View File

@@ -1190,6 +1190,19 @@ var Client = (function (_EventEmitter) {
return this.internal.removeFriend(user).then(dataCallback(callback), errorCallback(callback));
};
// def getOAuthApplication
Client.prototype.getOAuthApplication = function getOAuthApplication(appID) {
var callback = arguments.length <= 1 || arguments[1] === undefined ? function () /*err, bans*/{} : arguments[1];
if (typeof appID === "function") {
// appID is the callback
callback = appID;
appID = null;
}
return this.internal.getOAuthApplication(appID).then(dataCallback(callback), errorCallback(callback));
};
// def awaitResponse
Client.prototype.awaitResponse = function awaitResponse(msg) {