mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 00:53:31 +01:00
Refactor OAuth application stuff
This commit is contained in:
26
src/structures/ClientOAuth2Application.js
Normal file
26
src/structures/ClientOAuth2Application.js
Normal file
@@ -0,0 +1,26 @@
|
||||
const User = require('./User');
|
||||
const OAuth2Application = require('./OAuth2Application');
|
||||
|
||||
/**
|
||||
* Represents the client's OAuth2 Application
|
||||
* @extends {OAuth2Application}
|
||||
*/
|
||||
class ClientOAuth2Application extends OAuth2Application {
|
||||
setup(data) {
|
||||
super.setup(data);
|
||||
|
||||
/**
|
||||
* The app's flags
|
||||
* @type {int}
|
||||
*/
|
||||
this.flags = data.flags;
|
||||
|
||||
/**
|
||||
* The app's owner
|
||||
* @type {User}
|
||||
*/
|
||||
this.owner = new User(this.client, data.owner);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = ClientOAuth2Application;
|
||||
Reference in New Issue
Block a user