mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 20:13:30 +01:00
types(CommandInteraction): add awaitModalSubmit (#7811)
This commit is contained in:
3
packages/discord.js/typings/index.d.ts
vendored
3
packages/discord.js/typings/index.d.ts
vendored
@@ -440,6 +440,9 @@ export abstract class CommandInteraction<Cached extends CacheType = CacheType> e
|
|||||||
public showModal(
|
public showModal(
|
||||||
modal: JSONEncodable<APIModalInteractionResponseCallbackData> | ModalData | APIModalInteractionResponseCallbackData,
|
modal: JSONEncodable<APIModalInteractionResponseCallbackData> | ModalData | APIModalInteractionResponseCallbackData,
|
||||||
): Promise<void>;
|
): Promise<void>;
|
||||||
|
public awaitModalSubmit(
|
||||||
|
options: AwaitModalSubmitOptions<ModalSubmitInteraction>,
|
||||||
|
): Promise<ModalSubmitInteraction<Cached>>;
|
||||||
private transformOption(
|
private transformOption(
|
||||||
option: APIApplicationCommandOption,
|
option: APIApplicationCommandOption,
|
||||||
resolved: APIApplicationCommandInteractionData['resolved'],
|
resolved: APIApplicationCommandInteractionData['resolved'],
|
||||||
|
|||||||
Reference in New Issue
Block a user