mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-20 13:33:30 +01:00
feat(ModalSubmitInteraction): add boolean properties (#7596)
This commit is contained in:
@@ -48,6 +48,24 @@ class ModalSubmitInteraction extends Interaction {
|
|||||||
*/
|
*/
|
||||||
this.fields = new ModalSubmitFieldsResolver(this.components);
|
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
|
* An associated interaction webhook, can be used to further interact with this interaction
|
||||||
* @type {InteractionWebhook}
|
* @type {InteractionWebhook}
|
||||||
|
|||||||
3
packages/discord.js/typings/index.d.ts
vendored
3
packages/discord.js/typings/index.d.ts
vendored
@@ -1773,6 +1773,9 @@ export class ModalSubmitInteraction<Cached extends CacheType = CacheType> extend
|
|||||||
// TODO: fix this type when #7517 is implemented
|
// TODO: fix this type when #7517 is implemented
|
||||||
public readonly components: ModalSubmitActionRow[];
|
public readonly components: ModalSubmitActionRow[];
|
||||||
public readonly fields: ModalSubmitFieldsResolver;
|
public readonly fields: ModalSubmitFieldsResolver;
|
||||||
|
public deferred: boolean;
|
||||||
|
public ephemeral: boolean | null;
|
||||||
|
public replied: boolean;
|
||||||
public readonly webhook: InteractionWebhook;
|
public readonly webhook: InteractionWebhook;
|
||||||
public reply(options: InteractionReplyOptions & { fetchReply: true }): Promise<GuildCacheMessage<Cached>>;
|
public reply(options: InteractionReplyOptions & { fetchReply: true }): Promise<GuildCacheMessage<Cached>>;
|
||||||
public reply(options: string | MessagePayload | InteractionReplyOptions): Promise<void>;
|
public reply(options: string | MessagePayload | InteractionReplyOptions): Promise<void>;
|
||||||
|
|||||||
Reference in New Issue
Block a user