mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 10:33:30 +01:00
fix(interactions): options should be optional (#10683)
fix(interactions): fix optional overloads
This commit is contained in:
@@ -290,7 +290,7 @@ export class InteractionsAPI {
|
|||||||
interactionId: Snowflake,
|
interactionId: Snowflake,
|
||||||
interactionToken: string,
|
interactionToken: string,
|
||||||
callbackData: CreateInteractionUpdateMessageResponseOptions & { with_response: true },
|
callbackData: CreateInteractionUpdateMessageResponseOptions & { with_response: true },
|
||||||
options: Pick<RequestData, 'signal'>,
|
options?: Pick<RequestData, 'signal'>,
|
||||||
): Promise<RESTPostAPIInteractionCallbackWithResponseResult>;
|
): Promise<RESTPostAPIInteractionCallbackWithResponseResult>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -306,7 +306,7 @@ export class InteractionsAPI {
|
|||||||
interactionId: Snowflake,
|
interactionId: Snowflake,
|
||||||
interactionToken: string,
|
interactionToken: string,
|
||||||
callbackData: CreateInteractionUpdateMessageResponseOptions & { with_response?: false },
|
callbackData: CreateInteractionUpdateMessageResponseOptions & { with_response?: false },
|
||||||
options: Pick<RequestData, 'signal'>,
|
options?: Pick<RequestData, 'signal'>,
|
||||||
): Promise<undefined>;
|
): Promise<undefined>;
|
||||||
|
|
||||||
public async updateMessage(
|
public async updateMessage(
|
||||||
@@ -358,7 +358,7 @@ export class InteractionsAPI {
|
|||||||
interactionId: Snowflake,
|
interactionId: Snowflake,
|
||||||
interactionToken: string,
|
interactionToken: string,
|
||||||
callbackData: CreateAutocompleteResponseOptions & { with_response?: false },
|
callbackData: CreateAutocompleteResponseOptions & { with_response?: false },
|
||||||
options: Pick<RequestData, 'signal'>,
|
options?: Pick<RequestData, 'signal'>,
|
||||||
): Promise<undefined>;
|
): Promise<undefined>;
|
||||||
|
|
||||||
public async createAutocompleteResponse(
|
public async createAutocompleteResponse(
|
||||||
|
|||||||
Reference in New Issue
Block a user