mirror of
https://github.com/danbulant/discord.js
synced 2026-07-07 04:00:42 +00:00
Webpack build for branch master: 201ecd25a2
This commit is contained in:
parent
c841f6e0ac
commit
168c77f2ad
2 changed files with 19 additions and 8 deletions
|
|
@ -9031,14 +9031,25 @@ class OAuth2Application {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reset the app's secret and bot token.
|
* Reset the app's secret.
|
||||||
|
* <warn>This is only available when using a user account.</warn>
|
||||||
* @returns {OAuth2Application}
|
* @returns {OAuth2Application}
|
||||||
*/
|
*/
|
||||||
reset() {
|
resetSecret() {
|
||||||
return this.rest.api.oauth2.applications(this.id).reset.post()
|
return this.client.api.oauth2.applications(this.id).reset.post()
|
||||||
.then(app => new OAuth2Application(this.client, app));
|
.then(app => new OAuth2Application(this.client, app));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reset the app's bot token.
|
||||||
|
* <warn>This is only available when using a user account.</warn>
|
||||||
|
* @returns {OAuth2Application}
|
||||||
|
*/
|
||||||
|
resetToken() {
|
||||||
|
return this.client.api.oauth2.applications(this.id).bot().reset.post()
|
||||||
|
.then(app => new OAuth2Application(this.client, Object.assign({}, this, { bot: app })));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* When concatenated with a string, this automatically concatenates the app name rather than the app object.
|
* When concatenated with a string, this automatically concatenates the app name rather than the app object.
|
||||||
* @returns {string}
|
* @returns {string}
|
||||||
|
|
@ -17547,7 +17558,7 @@ class Client extends EventEmitter {
|
||||||
* @returns {Promise<OAuth2Application>}
|
* @returns {Promise<OAuth2Application>}
|
||||||
*/
|
*/
|
||||||
fetchApplication(id = '@me') {
|
fetchApplication(id = '@me') {
|
||||||
return this.rest.api.oauth2.applications(id).get()
|
return this.api.oauth2.applications(id).get()
|
||||||
.then(app => new OAuth2Application(this, app));
|
.then(app => new OAuth2Application(this, app));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -24115,7 +24126,7 @@ const paramable = [
|
||||||
'bans', 'emojis', 'pins', 'permissions',
|
'bans', 'emojis', 'pins', 'permissions',
|
||||||
'reactions', 'webhooks', 'messages',
|
'reactions', 'webhooks', 'messages',
|
||||||
'notes', 'roles', 'applications',
|
'notes', 'roles', 'applications',
|
||||||
'invites',
|
'invites', 'bot',
|
||||||
];
|
];
|
||||||
const reflectors = ['toString', 'valueOf', 'inspect', Symbol.toPrimitive, util.inspect.custom];
|
const reflectors = ['toString', 'valueOf', 'inspect', Symbol.toPrimitive, util.inspect.custom];
|
||||||
|
|
||||||
|
|
|
||||||
6
discord.master.min.js
vendored
6
discord.master.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue