chat_manage: Send/Edit/Delete post from a channel

chat_messageR Documentation

Send/Edit/Delete post from a channel

Description

Send, Edit or Delete a post from a channel based on the timestamp (ts).

Usage

chat_message(channel, ..., token = Sys.getenv("SLACK_API_TOKEN"))

chat_update(
  post = NULL,
  channel = NULL,
  ts = NULL,
  ...,
  token = Sys.getenv("SLACK_API_TOKEN")
)

chat_delete(
  post = NULL,
  channel = NULL,
  ts = NULL,
  ...,
  token = Sys.getenv("SLACK_API_TOKEN")
)

## Default S3 method:
chat_update(
  post = NULL,
  channel = NULL,
  ts = NULL,
  ...,
  token = Sys.getenv("SLACK_API_TOKEN")
)

## Default S3 method:
chat_delete(
  post = NULL,
  channel = NULL,
  ts = NULL,
  ...,
  token = Sys.getenv("SLACK_API_TOKEN")
)

## S3 method for class 'slackpost'
chat_update(
  post = NULL,
  channel = NULL,
  ts = NULL,
  ...,
  token = Sys.getenv("SLACK_API_TOKEN")
)

## S3 method for class 'slackpost'
chat_delete(
  post = NULL,
  channel = NULL,
  ts = NULL,
  ...,
  token = Sys.getenv("SLACK_API_TOKEN")
)

Arguments

channel

character, Channel ID

...

arguments to pass to API method.

token

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

post

slackpost class object that contains meta information to identify a post.

ts

character, timestamp

Details

Arguments that can be passed include 'text', 'blocks'

Value

A list with an additional class corresponding to slack_method.


yonicd/slackposts documentation built on Sept. 7, 2024, 10:24 a.m.