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

Commit 257b132

Browse files
authored
Merge pull request #101 from beuluis/master
fix(ModalSubmitInteraction): typings (#101)
2 parents 6fff322 + baff1e5 commit 257b132

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

DOCS.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -557,11 +557,11 @@ Represents a Modal Submit Interaction.
557557
| `.member` | `.followUp()` |
558558
| `.memberPermissions` | `.update()` |
559559
| `.locale` | `.isFromMessage()` |
560-
| `.guildLocale` | `.isRepliable()` |
561-
| `.message` | |
562-
| `.version` | |
563-
| `.webhook` | |
564-
| `.type` | |
560+
| `.guildLocale` | `.isRepliable()` |
561+
| `.message` | |
562+
| `.version` | |
563+
| `.webhook` | |
564+
| `.type` | |
565565

566566
### Properties
567567

index.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import {
1919
MessagePayload,
2020
InteractionReplyOptions,
2121
InteractionDeferReplyOptions,
22+
InteractionEditReplyOptions,
2223
InteractionUpdateOptions,
2324
} from 'discord.js';
2425

@@ -176,6 +177,10 @@ export class ModalActionRow {
176177
export class ModalSubmitInteraction extends Interaction {
177178
constructor(client?: Client, data?: APIModalSubmitInteraction);
178179

180+
components: ModalActionRow[];
181+
guildId: Snowflake;
182+
version: string;
183+
type: InteractionTypes;
179184
customId: string;
180185
fields: ModalSubmitField[];
181186
selectMenus: ModalSubmitSelectMenu[];
@@ -206,6 +211,7 @@ export class ModalSubmitInteraction extends Interaction {
206211
reply(
207212
options: string | MessagePayload | InteractionReplyOptions
208213
): Promise<void>;
214+
editReply(options: string | MessagePayload | InteractionEditReplyOptions): Promise<void>;
209215
fetchReply(): Promise<Message>;
210216
deleteReply(): Promise<void>;
211217
followUp(

src/structures/ModalSubmitInteraction.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ class ModalSubmitInteraction extends Interaction {
8383

8484
/**
8585
* The Action Rows of the modal with the Text Input Components.
86+
* @type {Array<ModalActionRow>}
8687
*/
8788

8889
this.components = data.data.components?.map(

0 commit comments

Comments
 (0)