mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 00:53:31 +01:00
feat(Application): application flags (#5147)
Co-authored-by: SpaceEEC <spaceeec@yahoo.com> Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com>
This commit is contained in:
@@ -25,21 +25,21 @@ class Application extends Base {
|
||||
|
||||
/**
|
||||
* The name of the app
|
||||
* @type {string}
|
||||
* @type {?string}
|
||||
*/
|
||||
this.name = data.name;
|
||||
this.name = data.name ?? this.name ?? null;
|
||||
|
||||
/**
|
||||
* The app's description
|
||||
* @type {string}
|
||||
* @type {?string}
|
||||
*/
|
||||
this.description = data.description;
|
||||
this.description = data.description ?? this.description ?? null;
|
||||
|
||||
/**
|
||||
* The app's icon hash
|
||||
* @type {string}
|
||||
* @type {?string}
|
||||
*/
|
||||
this.icon = data.icon;
|
||||
this.icon = data.icon ?? this.icon ?? null;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -108,7 +108,7 @@ class Application extends Base {
|
||||
/**
|
||||
* When concatenated with a string, this automatically returns the application's name instead of the
|
||||
* Oauth2Application object.
|
||||
* @returns {string}
|
||||
* @returns {?string}
|
||||
* @example
|
||||
* // Logs: Application name: My App
|
||||
* console.log(`Application name: ${application}`);
|
||||
|
||||
Reference in New Issue
Block a user