mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01: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:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user