Skip to content

Commit

Permalink
Add message typing to ModalSubmitInteraction
Browse files Browse the repository at this point in the history
  • Loading branch information
sasial-dev committed Apr 14, 2022
1 parent e1cdcfa commit afdb34d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion typings/index.d.ts
Expand Up @@ -1897,7 +1897,7 @@ export class ModalSubmitFieldsResolver {

export interface ModalMessageModalSubmitInteraction<Cached extends CacheType = CacheType>
extends ModalSubmitInteraction<Cached> {
message: GuildCacheMessage<Cached> | null;
message: GuildCacheMessage<Cached>;
update(options: InteractionUpdateOptions & { fetchReply: true }): Promise<GuildCacheMessage<Cached>>;
update(options: string | MessagePayload | InteractionUpdateOptions): Promise<void>;
deferUpdate(options: InteractionDeferUpdateOptions & { fetchReply: true }): Promise<GuildCacheMessage<Cached>>;
Expand All @@ -1913,6 +1913,7 @@ export class ModalSubmitInteraction<Cached extends CacheType = CacheType> extend
public components: PartialModalActionRow[];
public deferred: boolean;
public ephemeral: boolean | null;
public message: GuildCacheMessage<Cached> | null;
public fields: ModalSubmitFieldsResolver;
public replied: false;
public webhook: InteractionWebhook;
Expand Down

0 comments on commit afdb34d

Please sign in to comment.