mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 01:23:31 +01:00
feat(GuildChannel): createInvite target options (#5514)
Co-authored-by: Antonio Román <kyradiscord@gmail.com> Co-authored-by: Advaith <advaithj1@gmail.com>
This commit is contained in:
@@ -15,6 +15,48 @@ class IntegrationApplication extends Application {
|
||||
* @type {?User}
|
||||
*/
|
||||
this.bot = data.bot ? this.client.users.add(data.bot) : this.bot ?? null;
|
||||
|
||||
/**
|
||||
* The url of the app's terms of service
|
||||
* @type {?string}
|
||||
*/
|
||||
this.termsOfServiceURL = data.terms_of_service_url ?? this.termsOfServiceURL ?? null;
|
||||
|
||||
/**
|
||||
* The url of the app's privacy policy
|
||||
* @type {?string}
|
||||
*/
|
||||
this.privacyPolicyURL = data.privacy_policy_url ?? this.privacyPolicyURL ?? null;
|
||||
|
||||
/**
|
||||
* The Array of RPC origin urls
|
||||
* @type {string[]}
|
||||
*/
|
||||
this.rpcOrigins = data.rpc_origins ?? this.rpcOrigins ?? [];
|
||||
|
||||
/**
|
||||
* The application summary
|
||||
* @type {?string}
|
||||
*/
|
||||
this.summary = data.summary ?? this.summary ?? null;
|
||||
|
||||
/**
|
||||
* Whether the application can be default hooked by the client
|
||||
* @type {?boolean}
|
||||
*/
|
||||
this.hook = data.hook ?? this.hook ?? null;
|
||||
|
||||
/**
|
||||
* The hash of the application's cover image
|
||||
* @type {?string}
|
||||
*/
|
||||
this.cover = data.cover_image ?? this.cover ?? null;
|
||||
|
||||
/**
|
||||
* The hex-encoded key for verification in interactions and the GameSDK's GetTicket
|
||||
* @type {?string}
|
||||
*/
|
||||
this.verifyKey = data.verify_key ?? this.verifyKey ?? null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user