feat(ModalSubmitInteraction): add boolean properties (#7596)

This commit is contained in:
muchnameless
2022-03-06 16:26:32 +01:00
committed by GitHub
parent 8f1986a6aa
commit 89073903a2
2 changed files with 21 additions and 0 deletions

View File

@@ -48,6 +48,24 @@ class ModalSubmitInteraction extends Interaction {
*/
this.fields = new ModalSubmitFieldsResolver(this.components);
/**
* Whether the reply to this interaction has been deferred
* @type {boolean}
*/
this.deferred = false;
/**
* Whether this interaction has already been replied to
* @type {boolean}
*/
this.replied = false;
/**
* Whether the reply to this interaction is ephemeral
* @type {?boolean}
*/
this.ephemeral = null;
/**
* An associated interaction webhook, can be used to further interact with this interaction
* @type {InteractionWebhook}

View File

@@ -1773,6 +1773,9 @@ export class ModalSubmitInteraction<Cached extends CacheType = CacheType> extend
// TODO: fix this type when #7517 is implemented
public readonly components: ModalSubmitActionRow[];
public readonly fields: ModalSubmitFieldsResolver;
public deferred: boolean;
public ephemeral: boolean | null;
public replied: boolean;
public readonly webhook: InteractionWebhook;
public reply(options: InteractionReplyOptions & { fetchReply: true }): Promise<GuildCacheMessage<Cached>>;
public reply(options: string | MessagePayload | InteractionReplyOptions): Promise<void>;