We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff2c382 commit d11086dCopy full SHA for d11086d
packages/discord.js/src/structures/ClientApplication.js
@@ -178,14 +178,8 @@ class ClientApplication extends Application {
178
* @returns {Promise<ClientApplication>}
179
*/
180
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
-
+ const data = await this.client.rest.get(Routes.currentApplication());
187
this._patch(data);
188
- this._patch(authData);
189
return this;
190
}
191
0 commit comments