Skip to content

Commit

Permalink
refactor: replace route
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiralite committed Aug 8, 2023
1 parent ff2c382 commit d11086d
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/discord.js/src/structures/ClientApplication.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,14 +178,8 @@ class ClientApplication extends Application {
* @returns {Promise<ClientApplication>}
*/
async fetch() {
const [data, authData] = await Promise.all([
// TODO: Routes.currentApplication() (discord-api-types)
this.client.rest.get('/applications/@me'),
this.client.rest.get(Routes.oauth2CurrentApplication()),
]);

const data = await this.client.rest.get(Routes.currentApplication());
this._patch(data);
this._patch(authData);
return this;
}

Expand Down

0 comments on commit d11086d

Please sign in to comment.