slackr_chtrans: Translate vector of channel names to channel IDs for API

View source: R/slackr_utils.R

slackr_chtransR Documentation

Translate vector of channel names to channel IDs for API

Description

Given a vector of one or more channel names, retrieve list of active channels and try to replace channels that begin with "⁠#⁠" or "@" with the channel ID for that channel.

Usage

slackr_chtrans(channels, token = Sys.getenv("SLACK_TOKEN"))

Arguments

channels

Comma-separated list of channel names or IDs where the file will be shared.

token

Authentication token bearing required scopes.

Value

character vector - original channel list with ⁠#⁠ or @ channels replaced with ID's.

Author(s)

Quinn Weber (ctb), Bob Rudis (aut)


hrbrmstr/slackr documentation built on Nov. 10, 2023, 5:32 p.m.