Fix client.fetchApplication (#1644)

previously it returned: `this.api.oauth2.applications was not a function`, missed fixing with the api router change
This commit is contained in:
bdistin
2017-07-01 19:33:21 -05:00
committed by Amish Shah
parent 2b56de7728
commit 8da557faab

View File

@@ -414,7 +414,7 @@ class Client extends EventEmitter {
* @returns {Promise<OAuth2Application>}
*/
fetchApplication(id = '@me') {
return this.api.oauth2.applications(id).get()
return this.api.oauth2.applications[id].get()
.then(app => new OAuth2Application(this, app));
}