mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 10:03:31 +01:00
types(Interactions): fix function overload types (#5989)
This commit is contained in:
12
typings/index.d.ts
vendored
12
typings/index.d.ts
vendored
@@ -578,9 +578,7 @@ declare module 'discord.js' {
|
||||
public editReply(options: string | MessagePayload | WebhookEditMessageOptions): Promise<Message | APIMessage>;
|
||||
public fetchReply(): Promise<Message | APIMessage>;
|
||||
public followUp(options: string | MessagePayload | InteractionReplyOptions): Promise<Message | APIMessage>;
|
||||
public reply(
|
||||
options: string | MessagePayload | (InteractionReplyOptions & { fetchReply: true }),
|
||||
): Promise<Message | APIMessage>;
|
||||
public reply(options: InteractionReplyOptions & { fetchReply: true }): Promise<Message | APIMessage>;
|
||||
public reply(options: string | MessagePayload | InteractionReplyOptions): Promise<void>;
|
||||
private transformOption(option: unknown, resolved: unknown): CommandInteractionOption;
|
||||
private _createOptionsCollection(options: unknown, resolved: unknown): Collection<string, CommandInteractionOption>;
|
||||
@@ -1443,13 +1441,9 @@ declare module 'discord.js' {
|
||||
public editReply(options: string | MessagePayload | WebhookEditMessageOptions): Promise<Message | APIMessage>;
|
||||
public fetchReply(): Promise<Message | APIMessage>;
|
||||
public followUp(options: string | MessagePayload | InteractionReplyOptions): Promise<Message | APIMessage>;
|
||||
public reply(
|
||||
options: string | MessagePayload | (InteractionReplyOptions & { fetchReply: true }),
|
||||
): Promise<Message | APIMessage>;
|
||||
public reply(options: InteractionReplyOptions & { fetchReply: true }): Promise<Message | APIMessage>;
|
||||
public reply(options: string | MessagePayload | InteractionReplyOptions): Promise<void>;
|
||||
public update(
|
||||
content: string | MessagePayload | (InteractionUpdateOptions & { fetchReply: true }),
|
||||
): Promise<Message | APIMessage>;
|
||||
public update(content: InteractionUpdateOptions & { fetchReply: true }): Promise<Message | APIMessage>;
|
||||
public update(content: string | MessagePayload | InteractionUpdateOptions): Promise<void>;
|
||||
|
||||
public static resolveType(type: MessageComponentTypeResolvable): MessageComponentType;
|
||||
|
||||
Reference in New Issue
Block a user