diff --git a/packages/discord.js/typings/index.d.ts b/packages/discord.js/typings/index.d.ts index 9872a1029..baa863ee3 100644 --- a/packages/discord.js/typings/index.d.ts +++ b/packages/discord.js/typings/index.d.ts @@ -1921,6 +1921,7 @@ export class InteractionCollector exte export class InteractionWebhook extends PartialWebhookMixin() { public constructor(client: Client, id: Snowflake, token: string); + public readonly client: Client; public token: string; public send(options: string | MessagePayload | InteractionReplyOptions): Promise; public editMessage( diff --git a/packages/discord.js/typings/index.test-d.ts b/packages/discord.js/typings/index.test-d.ts index d81c9d524..8324a0382 100644 --- a/packages/discord.js/typings/index.test-d.ts +++ b/packages/discord.js/typings/index.test-d.ts @@ -2279,6 +2279,7 @@ expectType>(webhookClient.send('content')); expectType>(webhookClient.editMessage(snowflake, 'content')); expectType>(webhookClient.fetchMessage(snowflake)); +expectType>(interactionWebhook.client); expectType>(interactionWebhook.send('content')); expectType>(interactionWebhook.editMessage(snowflake, 'content')); expectType>(interactionWebhook.fetchMessage(snowflake));