Refactor Modal.reply

This commit is contained in:
March 7th
2022-09-29 19:45:22 +07:00
parent e9961e4134
commit a1acbf2721
6 changed files with 32 additions and 24 deletions

8
typings/index.d.ts vendored
View File

@@ -2271,10 +2271,16 @@ export class Modal {
): this;
public setTitle(title: string): this;
public toJSON(): RawModalSubmitInteractionData;
public reply(guildId: Snowflake, channelId: Snowflake, ...args: ModalReplyData[]): Promise<Snowflake>;
public reply(data: ModalReplyData): Promise<InteractionResponseBody>;
}
export interface ModalReplyData {
guild: GuildResolvable;
channel: TextChannelResolvable;
data: TextInputComponentReplyData[];
}
export interface TextInputComponentReplyData {
customId: string;
value: string;
}