mirror of
https://github.com/danbulant/discord.js
synced 2026-06-19 14:41:36 +00:00
Webpack build for branch master: 8e5c600227
This commit is contained in:
parent
69e9ea2043
commit
01cecd759a
2 changed files with 10 additions and 2 deletions
|
|
@ -13904,6 +13904,14 @@ class OAuth2Application {
|
|||
* @type {boolean}
|
||||
*/
|
||||
this.secret = data.secret;
|
||||
|
||||
if (data.owner) {
|
||||
/**
|
||||
* The owner of this OAuth application
|
||||
* @type {?User}
|
||||
*/
|
||||
this.owner = this.client.dataManager.newUser(data.owner);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -17885,7 +17893,7 @@ class Client extends EventEmitter {
|
|||
/**
|
||||
* Obtains the OAuth Application of the bot from Discord.
|
||||
* @param {Snowflake} [id='@me'] ID of application to fetch
|
||||
* @returns {Promise<ClientOAuth2Application>}
|
||||
* @returns {Promise<OAuth2Application>}
|
||||
*/
|
||||
fetchApplication(id = '@me') {
|
||||
return this.rest.methods.getApplication(id);
|
||||
|
|
|
|||
2
discord.master.min.js
vendored
2
discord.master.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue