mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 21:13:30 +01:00
types(Interactions): fix function overloads (#6109)
This commit is contained in:
6
typings/index.d.ts
vendored
6
typings/index.d.ts
vendored
@@ -419,7 +419,7 @@ export class CommandInteraction extends Interaction {
|
|||||||
public options: Collection<string, CommandInteractionOption>;
|
public options: Collection<string, CommandInteractionOption>;
|
||||||
public replied: boolean;
|
public replied: boolean;
|
||||||
public webhook: InteractionWebhook;
|
public webhook: InteractionWebhook;
|
||||||
public defer(options?: InteractionDeferOptions & { fetchReply: true }): Promise<Message | APIMessage>;
|
public defer(options: InteractionDeferOptions & { fetchReply: true }): Promise<Message | APIMessage>;
|
||||||
public defer(options?: InteractionDeferOptions): Promise<void>;
|
public defer(options?: InteractionDeferOptions): Promise<void>;
|
||||||
public deleteReply(): Promise<void>;
|
public deleteReply(): Promise<void>;
|
||||||
public editReply(options: string | MessagePayload | WebhookEditMessageOptions): Promise<Message | APIMessage>;
|
public editReply(options: string | MessagePayload | WebhookEditMessageOptions): Promise<Message | APIMessage>;
|
||||||
@@ -1069,9 +1069,9 @@ export class MessageComponentInteraction extends Interaction {
|
|||||||
public message: Message | APIMessage;
|
public message: Message | APIMessage;
|
||||||
public replied: boolean;
|
public replied: boolean;
|
||||||
public webhook: InteractionWebhook;
|
public webhook: InteractionWebhook;
|
||||||
public defer(options?: InteractionDeferOptions & { fetchReply: true }): Promise<Message | APIMessage>;
|
public defer(options: InteractionDeferOptions & { fetchReply: true }): Promise<Message | APIMessage>;
|
||||||
public defer(options?: InteractionDeferOptions): Promise<void>;
|
public defer(options?: InteractionDeferOptions): Promise<void>;
|
||||||
public deferUpdate(options?: InteractionDeferUpdateOptions & { fetchReply: true }): Promise<Message | APIMessage>;
|
public deferUpdate(options: InteractionDeferUpdateOptions & { fetchReply: true }): Promise<Message | APIMessage>;
|
||||||
public deferUpdate(options?: InteractionDeferUpdateOptions): Promise<void>;
|
public deferUpdate(options?: InteractionDeferUpdateOptions): Promise<void>;
|
||||||
public deleteReply(): Promise<void>;
|
public deleteReply(): Promise<void>;
|
||||||
public editReply(options: string | MessagePayload | WebhookEditMessageOptions): Promise<Message | APIMessage>;
|
public editReply(options: string | MessagePayload | WebhookEditMessageOptions): Promise<Message | APIMessage>;
|
||||||
|
|||||||
Reference in New Issue
Block a user