diff --git a/src/structures/GuildChannel.js b/src/structures/GuildChannel.js index 31d27f807e16..6eb25e8f59a8 100644 --- a/src/structures/GuildChannel.js +++ b/src/structures/GuildChannel.js @@ -514,7 +514,7 @@ class GuildChannel extends Channel { max_uses: maxUses, unique, target_user_id: this.client.users.resolveID(targetUser), - target_application_id: targetApplication.id ?? targetApplication, + target_application_id: targetApplication?.applicationID ?? targetApplication, target_type: targetType, }, reason, diff --git a/src/structures/IntegrationApplication.js b/src/structures/IntegrationApplication.js index 053338d8a42c..208d301c3ca5 100644 --- a/src/structures/IntegrationApplication.js +++ b/src/structures/IntegrationApplication.js @@ -26,7 +26,7 @@ class IntegrationApplication extends Application { * The url of the app's privacy policy * @type {?string} */ - this.privacyPolicyURL = data.privacyPolicyURL ?? this.data.privacyPolicyURL ?? null; + this.privacyPolicyURL = data.privacyPolicyURL ?? this.privacyPolicyURL ?? null; /** * The Array of RPC origin urls diff --git a/src/structures/Invite.js b/src/structures/Invite.js index b3d328560e8b..8effa1c4f9f9 100644 --- a/src/structures/Invite.js +++ b/src/structures/Invite.js @@ -81,7 +81,9 @@ class Invite extends Base { * The target application of this invite * @type {?IntegrationApplication} */ - this.targetApplication = data.target_application ? new IntegrationApplication(data.target_application) : null; + this.targetApplication = data.target_application + ? new IntegrationApplication(this.client, data.target_application) + : null; /** * The type of the invite target: