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