From 9fc88f927bedc01d1d9cf548c4dc5002c23f361f Mon Sep 17 00:00:00 2001 From: David Stotijn Date: Fri, 17 Dec 2021 17:45:21 +0100 Subject: [PATCH] Add `template` block type --- block.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/block.go b/block.go index 1f4d9b5..de0b4bc 100644 --- a/block.go +++ b/block.go @@ -43,6 +43,7 @@ type Block struct { LinkPreview *LinkPreview `json:"link_preview,omitempty"` LinkToPage *LinkToPage `json:"link_to_page,omitempty"` SyncedBlock *SyncedBlock `json:"synced_block,omitempty"` + Template *RichTextBlock `json:"template,omitempty"` } type RichTextBlock struct { @@ -183,6 +184,7 @@ const ( BlockTypeLinkPreview BlockType = "link_preview" BlockTypeLinkToPage BlockType = "link_to_page" BlockTypeSyncedBlock BlockType = "synced_block" + BlockTypeTemplate BlockType = "template" BlockTypeUnsupported BlockType = "unsupported" )