docs: Consistent application name usage (#5853)

This commit is contained in:
Jiralite
2021-06-15 12:02:39 +01:00
committed by GitHub
parent 038ee99604
commit 96a4e7b86e
3 changed files with 13 additions and 13 deletions

View File

@@ -36,19 +36,19 @@ class ClientApplication extends Application {
this.cover = data.cover_image ?? this.cover ?? null;
/**
* The app's RPC origins, if enabled
* The application's RPC origins, if enabled
* @type {string[]}
*/
this.rpcOrigins = data.rpc_origins ?? this.rpcOrigins ?? [];
/**
* If this app's bot requires a code grant when using the OAuth2 flow
* If this application's bot requires a code grant when using the OAuth2 flow
* @type {?boolean}
*/
this.botRequireCodeGrant = data.bot_require_code_grant ?? this.botRequireCodeGrant ?? null;
/**
* If this app's bot is public
* If this application's bot is public
* @type {?boolean}
*/
this.botPublic = data.bot_public ?? this.botPublic ?? null;

View File

@@ -17,13 +17,13 @@ class IntegrationApplication extends Application {
this.bot = data.bot ? this.client.users.add(data.bot) : this.bot ?? null;
/**
* The url of the app's terms of service
* The url of the application's terms of service
* @type {?string}
*/
this.termsOfServiceURL = data.terms_of_service_url ?? this.termsOfServiceURL ?? null;
/**
* The url of the app's privacy policy
* The url of the application's privacy policy
* @type {?string}
*/
this.privacyPolicyURL = data.privacy_policy_url ?? this.privacyPolicyURL ?? null;
@@ -35,7 +35,7 @@ class IntegrationApplication extends Application {
this.rpcOrigins = data.rpc_origins ?? this.rpcOrigins ?? [];
/**
* The application summary
* The application's summary
* @type {?string}
*/
this.summary = data.summary ?? this.summary ?? null;

View File

@@ -18,32 +18,32 @@ class Application extends Base {
_patch(data) {
/**
* The ID of the app
* The ID of the application
* @type {Snowflake}
*/
this.id = data.id;
/**
* The name of the app
* The name of the application
* @type {?string}
*/
this.name = data.name ?? this.name ?? null;
/**
* The app's description
* The application's description
* @type {?string}
*/
this.description = data.description ?? this.description ?? null;
/**
* The app's icon hash
* The application's icon hash
* @type {?string}
*/
this.icon = data.icon ?? this.icon ?? null;
}
/**
* The timestamp the app was created at
* The timestamp the application was created at
* @type {number}
* @readonly
*/
@@ -52,7 +52,7 @@ class Application extends Base {
}
/**
* The time the app was created at
* The time the application was created at
* @type {Date}
* @readonly
*/
@@ -89,7 +89,7 @@ class Application extends Base {
*/
/**
* Gets the clients rich presence assets.
* Gets the application's rich presence assets.
* @returns {Promise<Array<ApplicationAsset>>}
*/
fetchAssets() {