From f3d28009bf83060a37c51d9479c7a90e821c26c6 Mon Sep 17 00:00:00 2001 From: Christian Dupuis Date: Thu, 6 Aug 2020 14:01:01 +0200 Subject: [PATCH] Fix plain_text --- lib/SlackMessages.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/SlackMessages.ts b/lib/SlackMessages.ts index 37a9635..1590c26 100644 --- a/lib/SlackMessages.ts +++ b/lib/SlackMessages.ts @@ -461,10 +461,10 @@ export interface ChannelOptionElement extends Element { export interface SlackModal { type: "modal"; - title: PlainTextElement; + title: PlainTextObject; blocks: Block[]; - close?: PlainTextElement; - submit?: PlainTextElement; + close?: PlainTextObject; + submit?: PlainTextObject; private_metadata?: string; callback_id?: string; clear_on_close?: boolean; @@ -474,7 +474,7 @@ export interface SlackModal { export interface InputBlock extends Block { type: "input"; - label: PlainTextElement; + label: PlainTextObject; element: | PlainTextElement | DatePickerElement @@ -482,6 +482,6 @@ export interface InputBlock extends Block { | UserOptionElement | ConversationOptionElement | ChannelOptionElement; - hint?: PlainTextElement; + hint?: PlainTextObject; optional?: boolean; }