From f70ab41d569f82c92970f6c48a668dbb6b6ba237 Mon Sep 17 00:00:00 2001 From: Ryan Munro Date: Mon, 13 Jan 2025 07:51:58 +1100 Subject: [PATCH] fix(IntegrationApplication)!: remove `hook` (#10699) BREAKING CHANGE: IntegrationApplication#hook has been removed. --- .../src/structures/IntegrationApplication.js | 10 ---------- packages/discord.js/typings/index.d.ts | 1 - 2 files changed, 11 deletions(-) diff --git a/packages/discord.js/src/structures/IntegrationApplication.js b/packages/discord.js/src/structures/IntegrationApplication.js index 498500848..406c1d81c 100644 --- a/packages/discord.js/src/structures/IntegrationApplication.js +++ b/packages/discord.js/src/structures/IntegrationApplication.js @@ -50,16 +50,6 @@ class IntegrationApplication extends Application { this.rpcOrigins ??= []; } - if ('hook' in data) { - /** - * Whether the application can be default hooked by the client - * @type {?boolean} - */ - this.hook = data.hook; - } else { - this.hook ??= null; - } - if ('cover_image' in data) { /** * The hash of the application's cover image diff --git a/packages/discord.js/typings/index.d.ts b/packages/discord.js/typings/index.d.ts index 3a744a28b..43e923455 100644 --- a/packages/discord.js/typings/index.d.ts +++ b/packages/discord.js/typings/index.d.ts @@ -1903,7 +1903,6 @@ export class IntegrationApplication extends Application { public termsOfServiceURL: string | null; public privacyPolicyURL: string | null; public rpcOrigins: string[]; - public hook: boolean | null; public cover: string | null; public verifyKey: string | null; }