Skip to content

Commit d11086d

Browse files
committed
refactor: replace route
1 parent ff2c382 commit d11086d

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

packages/discord.js/src/structures/ClientApplication.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -178,14 +178,8 @@ class ClientApplication extends Application {
178178
* @returns {Promise<ClientApplication>}
179179
*/
180180
async fetch() {
181-
const [data, authData] = await Promise.all([
182-
// TODO: Routes.currentApplication() (discord-api-types)
183-
this.client.rest.get('/applications/@me'),
184-
this.client.rest.get(Routes.oauth2CurrentApplication()),
185-
]);
186-
181+
const data = await this.client.rest.get(Routes.currentApplication());
187182
this._patch(data);
188-
this._patch(authData);
189183
return this;
190184
}
191185

0 commit comments

Comments
 (0)