renamed OAuth2Application#reset to resetSecret and added resetToken (#1541)

This commit is contained in:
SpaceEEC
2017-06-25 00:26:09 +02:00
committed by Amish Shah
parent 7f8cc9c297
commit 201ecd25a2
3 changed files with 16 additions and 5 deletions

View File

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