mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix(IntegrationApplication)!: remove hook (#10699)
BREAKING CHANGE: IntegrationApplication#hook has been removed.
This commit is contained in:
@@ -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
|
||||
|
||||
1
packages/discord.js/typings/index.d.ts
vendored
1
packages/discord.js/typings/index.d.ts
vendored
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user