post_block: Post Block Element

View source: R/post.R

post_blockR Documentation

Post Block Element

Description

Post block to slack channel

Usage

post_block(
  block,
  channel,
  thread_ts = NULL,
  token = Sys.getenv("SLACK_API_TOKEN")
)

Arguments

block

block element(s)

channel

character, Channel ID, label or a URL link to a message

thread_ts

character slack api timestamp of the format xxxxxxxxxx.xxxxxx, Default: NULL

token

Slack API token, Default: Sys.getenv("SLACK_API_TOKEN")

Value

response

See Also

Other post: prep_channel()

Examples

## Not run: 
if(interactive()){
 #EXAMPLE1
 }

## End(Not run)

yonicd/slackblocks documentation built on March 2, 2023, 6:53 a.m.