diff --git a/packages/core/src/api/interactions.ts b/packages/core/src/api/interactions.ts index bc485a762..2b680dd10 100644 --- a/packages/core/src/api/interactions.ts +++ b/packages/core/src/api/interactions.ts @@ -159,7 +159,7 @@ export class InteractionsAPI { interactionToken: string, body: RESTPostAPIInteractionCallbackQuery & { with_response: true }, options?: Pick, - ): Promise; + ): Promise; /** * Defers an update from a message component interaction @@ -175,7 +175,7 @@ export class InteractionsAPI { interactionToken: string, body?: RESTPostAPIInteractionCallbackQuery & { with_response?: false }, options?: Pick, - ): Promise; + ): Promise; public async deferMessageUpdate( interactionId: Snowflake, @@ -316,6 +316,7 @@ export class InteractionsAPI { { signal }: Pick = {}, ) { const response = await this.rest.post(Routes.interactionCallback(interactionId, interactionToken), { + query: makeURLSearchParams({ with_response }), files, auth: false, body: { @@ -342,7 +343,7 @@ export class InteractionsAPI { interactionToken: string, callbackData: CreateAutocompleteResponseOptions & { with_response: true }, options?: Pick, - ): Promise; + ): Promise; /** * Sends an autocomplete response to an interaction @@ -367,6 +368,7 @@ export class InteractionsAPI { { signal }: Pick = {}, ) { const response = await this.rest.post(Routes.interactionCallback(interactionId, interactionToken), { + query: makeURLSearchParams({ with_response }), auth: false, body: { type: InteractionResponseType.ApplicationCommandAutocompleteResult, @@ -417,6 +419,7 @@ export class InteractionsAPI { { signal }: Pick = {}, ) { const response = await this.rest.post(Routes.interactionCallback(interactionId, interactionToken), { + query: makeURLSearchParams({ with_response }), auth: false, body: { type: InteractionResponseType.Modal,