types: fix ModalSubmitInteraction (#7768)

This commit is contained in:
Sasial
2022-04-19 23:59:58 +10:00
committed by GitHub
parent 5165b18b85
commit 1d09ad4652

3
typings/index.d.ts vendored
View File

@@ -1915,7 +1915,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>>;
@@ -1931,6 +1931,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;