mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +01:00
Refactor OAuth application stuff
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
const User = require('./User');
|
||||
const OAuth2App = require('./OAuth2App');
|
||||
const OAuth2Application = require('./OAuth2Application');
|
||||
|
||||
/**
|
||||
* Represents the client's OAuth2 Application
|
||||
* @extends {OAuth2App}
|
||||
* @extends {OAuth2Application}
|
||||
*/
|
||||
class ClientOAuth2App extends OAuth2App {
|
||||
class ClientOAuth2Application extends OAuth2Application {
|
||||
setup(data) {
|
||||
super.setup(data);
|
||||
|
||||
@@ -23,4 +23,4 @@ class ClientOAuth2App extends OAuth2App {
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = ClientOAuth2App;
|
||||
module.exports = ClientOAuth2Application;
|
||||
@@ -1,10 +1,10 @@
|
||||
/**
|
||||
* Represents a OAuth2 Application
|
||||
* Represents an OAuth2 Application
|
||||
*/
|
||||
class OAuth2App {
|
||||
class OAuth2Application {
|
||||
constructor(client, data) {
|
||||
/**
|
||||
* The client that instantiated the role
|
||||
* The client that instantiated the application
|
||||
* @type {Client}
|
||||
*/
|
||||
this.client = client;
|
||||
@@ -78,4 +78,4 @@ class OAuth2App {
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = OAuth2App;
|
||||
module.exports = OAuth2Application;
|
||||
Reference in New Issue
Block a user