mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +01:00
Co-authored-by: SpaceEEC <spaceeec@yahoo.com> Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com>
22 lines
455 B
JavaScript
22 lines
455 B
JavaScript
'use strict';
|
|
|
|
const Application = require('./interfaces/Application');
|
|
|
|
/**
|
|
* Represents an Integration's OAuth2 Application.
|
|
* @extends {Application}
|
|
*/
|
|
class IntegrationApplication extends Application {
|
|
_patch(data) {
|
|
super._patch(data);
|
|
|
|
/**
|
|
* The bot user for this application
|
|
* @type {?User}
|
|
*/
|
|
this.bot = data.bot ? this.client.users.add(data.bot) : this.bot ?? null;
|
|
}
|
|
}
|
|
|
|
module.exports = IntegrationApplication;
|