Post block to slack channel

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

if (FALSE) { if(interactive()){ #EXAMPLE1 } }