@@ -159,7 +159,7 @@ export class InteractionsAPI {
159
159
interactionToken : string ,
160
160
body : RESTPostAPIInteractionCallbackQuery & { with_response : true } ,
161
161
options ?: Pick < RequestData , 'signal' > ,
162
- ) : Promise < undefined > ;
162
+ ) : Promise < RESTPostAPIInteractionCallbackWithResponseResult > ;
163
163
164
164
/**
165
165
* Defers an update from a message component interaction
@@ -175,7 +175,7 @@ export class InteractionsAPI {
175
175
interactionToken : string ,
176
176
body ?: RESTPostAPIInteractionCallbackQuery & { with_response ?: false } ,
177
177
options ?: Pick < RequestData , 'signal' > ,
178
- ) : Promise < RESTPostAPIInteractionCallbackWithResponseResult > ;
178
+ ) : Promise < undefined > ;
179
179
180
180
public async deferMessageUpdate (
181
181
interactionId : Snowflake ,
@@ -316,6 +316,7 @@ export class InteractionsAPI {
316
316
{ signal } : Pick < RequestData , 'signal' > = { } ,
317
317
) {
318
318
const response = await this . rest . post ( Routes . interactionCallback ( interactionId , interactionToken ) , {
319
+ query : makeURLSearchParams ( { with_response } ) ,
319
320
files,
320
321
auth : false ,
321
322
body : {
@@ -342,7 +343,7 @@ export class InteractionsAPI {
342
343
interactionToken : string ,
343
344
callbackData : CreateAutocompleteResponseOptions & { with_response : true } ,
344
345
options ?: Pick < RequestData , 'signal' > ,
345
- ) : Promise < APICommandAutocompleteInteractionResponseCallbackData > ;
346
+ ) : Promise < RESTPostAPIInteractionCallbackWithResponseResult > ;
346
347
347
348
/**
348
349
* Sends an autocomplete response to an interaction
@@ -367,6 +368,7 @@ export class InteractionsAPI {
367
368
{ signal } : Pick < RequestData , 'signal' > = { } ,
368
369
) {
369
370
const response = await this . rest . post ( Routes . interactionCallback ( interactionId , interactionToken ) , {
371
+ query : makeURLSearchParams ( { with_response } ) ,
370
372
auth : false ,
371
373
body : {
372
374
type : InteractionResponseType . ApplicationCommandAutocompleteResult ,
@@ -417,6 +419,7 @@ export class InteractionsAPI {
417
419
{ signal } : Pick < RequestData , 'signal' > = { } ,
418
420
) {
419
421
const response = await this . rest . post ( Routes . interactionCallback ( interactionId , interactionToken ) , {
422
+ query : makeURLSearchParams ( { with_response } ) ,
420
423
auth : false ,
421
424
body : {
422
425
type : InteractionResponseType . Modal ,
0 commit comments