conversations_open: Opens or resumes a direct message or multi-person direct...

View source: R/conversations.R

conversations_openR Documentation

Opens or resumes a direct message or multi-person direct message.

Description

Opens or resumes a direct message or multi-person direct message.

Usage

conversations_open(
  token = Sys.getenv("SLACK_TOKEN"),
  channel = NULL,
  return_im = NULL,
  users = NULL,
  return_response = F
)

Arguments

token

Authentication token bearing required scopes. Tokens should be passed as an HTTP Authorization header or alternatively, as a POST parameter.

channel

Resume a conversation by supplying an im or mpim's ID. Or provide the users field instead.

return_im

Boolean, indicates you want the full IM channel definition in the response.

users

Comma separated lists of users. If only one user is included, this creates a 1:1 DM. The ordering of the users is preserved whenever a multi-person direct message is returned. Supply a channel when not supplying users.

Details

This method supports application/json via HTTP POST. Present your token in your request's Authorization header. Learn more.


samterfa/slackme documentation built on April 11, 2022, 3:29 a.m.