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

Commit 1ba1986

Browse files
authored
Merge pull request #36 from Turtlepaw/master
fix: update to index.d.ts
2 parents b1a0ee4 + c3b03a8 commit 1ba1986

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
@@ -107,8 +107,8 @@ export class Modal {
107107

108108
setTitle(title: string): Modal;
109109
setCustomId(id: string): Modal;
110-
addComponents(component: TextInputComponent): Modal;
111-
setComponents(component: TextInputComponent): Modal;
110+
addComponents(...components: TextInputComponent): Modal;
111+
setComponents(...components: TextInputComponent): Modal;
112112
spliceComponents(): Modal;
113113
toJSON(): APIModalInteractionResponseCallbackData;
114114
}
@@ -151,7 +151,7 @@ export class ModalSubmitInteraction extends Interaction {
151151
reply(
152152
options: string | MessagePayload | InteractionReplyOptions
153153
): Promise<void>;
154-
fetchReply(): Promise<void>;
154+
fetchReply(): Promise<Message>;
155155
deleteReply(): Promise<void>;
156156
followUp(
157157
options: string | MessagePayload | InteractionReplyOptions
@@ -164,7 +164,7 @@ export function showModal(
164164
client: Client;
165165
interaction: Interaction;
166166
}
167-
): Modal;
167+
): Promise<Modal>;
168168

169169
declare module "discord.js" {
170170
interface Client {

0 commit comments

Comments
 (0)