Skip to content
This repository was archived by the owner on Aug 30, 2022. It is now read-only.

Commit a498e82

Browse files
committed
2 parents 627fa27 + 1ba1986 commit a498e82

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

index.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ export class Modal {
109109

110110
setTitle(title: string): Modal;
111111
setCustomId(id: string): Modal;
112-
addComponents(component: TextInputComponent): Modal;
113-
setComponents(component: TextInputComponent): Modal;
112+
addComponents(...components: TextInputComponent): Modal;
113+
setComponents(...components: TextInputComponent): Modal;
114114
spliceComponents(): Modal;
115115
toJSON(): APIModalInteractionResponseCallbackData;
116116
}
@@ -164,7 +164,7 @@ export class ModalSubmitInteraction extends Interaction {
164164
reply(
165165
options: string | MessagePayload | InteractionReplyOptions
166166
): Promise<void>;
167-
fetchReply(): Promise<void>;
167+
fetchReply(): Promise<Message>;
168168
deleteReply(): Promise<void>;
169169
followUp(
170170
options: string | MessagePayload | InteractionReplyOptions
@@ -180,7 +180,7 @@ export function showModal(
180180
client: Client;
181181
interaction: Interaction;
182182
}
183-
): Modal;
183+
): Promise<Modal>;
184184

185185
declare module "discord.js" {
186186
interface Client {

0 commit comments

Comments
 (0)