Skip to content

Commit

Permalink
add imageBlock
Browse files Browse the repository at this point in the history
  • Loading branch information
barryoneill committed May 27, 2022
1 parent 250178e commit 3e6b34f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/scala/io/laserdisc/slack4s/slack/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,13 @@ package object slack {

def dividerSection: LayoutBlock = DividerBlock.builder().build()

def imageBlock(url: String, altText: String): ImageBlock =
ImageBlock
.builder()
.imageUrl(url)
.altText(altText)
.build()

def imageElement(url: String, altText: String): ImageElement =
ImageElement
.builder()
Expand Down

0 comments on commit 3e6b34f

Please sign in to comment.