Learn R Programming

slackr (version 1.2)

slackrChTrans: Translate vector of channel names to channel ID's for API

Usage

slackrChTrans(channels, api_token = Sys.getenv("SLACK_API_TOKEN"))

Arguments

channels
vector of channel names to parse
api_token
the slack.com full API token (chr)

Value

  • character vector - original channel list with #} or \code{@} channels replaced with ID's. Given a vector of one or more channel names, it will retrieve list of active channels and try to replace channels that begin with "#}" or "\code{@}" with the channel ID for that channel. Also incorporates groups. Renamed from slackr_chtrans