Refactor OAuth application stuff

This commit is contained in:
Schuyler Cebulskie
2016-10-30 16:55:08 -04:00
parent 589c44327a
commit 85330769a7
6 changed files with 18 additions and 18 deletions

View File

@@ -327,13 +327,13 @@ class Client extends EventEmitter {
}
/**
* Get's the bot's OAuth2 app.
* Gets the bot's OAuth2 application.
* <warn>This is only available for bot accounts.</warn>
* @returns {Promise<ClientOAuth2App>}
*/
getMyApp() {
fetchApplication() {
if (!this.user.bot) throw new Error(Constants.Errors.NO_BOT_ACCOUNT);
return this.rest.methods.getMyApp();
return this.rest.methods.getMyApplication();
}
setTimeout(fn, ...params) {