Refactor Modal.reply
This commit is contained in:
8
typings/index.d.ts
vendored
8
typings/index.d.ts
vendored
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user