mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 09:03:29 +01:00
rest api route fixes (#1645)
* start of the rest api router fixes. * fix more missed code
This commit is contained in:
@@ -138,7 +138,7 @@ class OAuth2Application {
|
||||
* @returns {OAuth2Application}
|
||||
*/
|
||||
resetSecret() {
|
||||
return this.client.api.oauth2.applications(this.id).reset.post()
|
||||
return this.client.api.oauth2.applications[this.id].reset.post()
|
||||
.then(app => new OAuth2Application(this.client, app));
|
||||
}
|
||||
|
||||
@@ -148,7 +148,7 @@ class OAuth2Application {
|
||||
* @returns {OAuth2Application}
|
||||
*/
|
||||
resetToken() {
|
||||
return this.client.api.oauth2.applications(this.id).bot().reset.post()
|
||||
return this.client.api.oauth2.applications[this.id].bot.reset.post()
|
||||
.then(app => new OAuth2Application(this.client, Object.assign({}, this, { bot: app })));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user