From 12b6f1a84ee0fb812d37a522d4016e4c317f37d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Pa=C4=BEo?= Date: Wed, 11 Apr 2018 10:50:35 +0200 Subject: [PATCH 1/4] Allow the mrkdwn_in field in message attachments --- src/methods.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/methods.ts b/src/methods.ts index fddcc8ab5..4a32b74db 100644 --- a/src/methods.ts +++ b/src/methods.ts @@ -91,6 +91,7 @@ export interface MessageAttachment { type: string; text?: string; }[]; + mrkdwn_in?: ('pretext' | 'text' | 'fields')[]; } export interface LinkUnfurls { From f506855d83a5e860d224c99f84a1b0c4e3c8ef8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Pa=C4=BEo?= Date: Wed, 11 Apr 2018 12:43:09 +0200 Subject: [PATCH 2/4] Allow the attachment_type and the callback_id fields in message attachments --- src/methods.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/methods.ts b/src/methods.ts index 4a32b74db..629361f49 100644 --- a/src/methods.ts +++ b/src/methods.ts @@ -91,6 +91,8 @@ export interface MessageAttachment { type: string; text?: string; }[]; + attachment_type?: 'default', + callback_id?: string; mrkdwn_in?: ('pretext' | 'text' | 'fields')[]; } From c9bf8425456cf3fcea0564a353dbcae08899b0da Mon Sep 17 00:00:00 2001 From: Dominik Palo Date: Thu, 12 Apr 2018 19:23:24 +0200 Subject: [PATCH 3/4] Fix typo --- src/methods.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/methods.ts b/src/methods.ts index 629361f49..d6a11fd20 100644 --- a/src/methods.ts +++ b/src/methods.ts @@ -91,7 +91,7 @@ export interface MessageAttachment { type: string; text?: string; }[]; - attachment_type?: 'default', + attachment_type?: 'default'; callback_id?: string; mrkdwn_in?: ('pretext' | 'text' | 'fields')[]; } From 951fe41b5a81aef7db1593f2cd9002859bca812f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Pa=C4=BEo?= Date: Fri, 13 Apr 2018 12:57:16 +0200 Subject: [PATCH 4/4] Remove the unnecessary field 'attachment_type' --- src/methods.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/methods.ts b/src/methods.ts index d6a11fd20..43297fd6d 100644 --- a/src/methods.ts +++ b/src/methods.ts @@ -91,7 +91,6 @@ export interface MessageAttachment { type: string; text?: string; }[]; - attachment_type?: 'default'; callback_id?: string; mrkdwn_in?: ('pretext' | 'text' | 'fields')[]; }