mirror of
https://github.com/danbulant/discord.js
synced 2026-05-24 20:42:27 +00:00
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:
parent
2b56de7728
commit
8da557faab
1 changed files with 1 additions and 1 deletions
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue