From 6f4e97bfafe4a058f6ec85d321676401d701ee55 Mon Sep 17 00:00:00 2001 From: Vitor Date: Tue, 12 Apr 2022 16:16:36 +0100 Subject: [PATCH] types(ModalSubmitInteraction): fix `components` type (#7732) --- packages/discord.js/typings/index.d.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/packages/discord.js/typings/index.d.ts b/packages/discord.js/typings/index.d.ts index 682d440bd..ff60008e3 100644 --- a/packages/discord.js/typings/index.d.ts +++ b/packages/discord.js/typings/index.d.ts @@ -1861,16 +1861,10 @@ export interface ModalMessageModalSubmitInteraction; } -export interface ModalSubmitActionRow { - type: ComponentType.ActionRow; - components: ActionRow[]; -} - export class ModalSubmitInteraction extends Interaction { private constructor(client: Client, data: APIModalSubmitInteraction); public readonly customId: string; - // TODO: fix this type when #7517 is implemented - public readonly components: ModalSubmitActionRow[]; + public readonly components: ActionRow[]; public readonly fields: ModalSubmitFieldsResolver; public deferred: boolean; public ephemeral: boolean | null;