🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@robinpath/slack

Package Overview
Dependencies
Maintainers
4
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@robinpath/slack

Slack Web API and Incoming Webhooks client for messaging, channels, reactions, file uploads, and user management

latest
npmnpm
Version
0.3.0
Version published
Maintainers
4
Created
Source

@robinpath/slack

Slack Web API and Incoming Webhooks client for messaging, channels, reactions, file uploads, and user management

Category Functions Auth License

Why use this module?

The slack module lets you:

  • Send a message to a Slack channel via chat.postMessage
  • Send a message via a Slack Incoming Webhook URL (no token needed)
  • Reply to a message thread via chat.postMessage with thread_ts
  • Add an emoji reaction to a message via reactions.add
  • Upload a file to a Slack channel using the new file upload API

All functions are callable directly from RobinPath scripts with a simple, consistent API.

Installation

robinpath add @robinpath/slack

Quick Start

1. Set up credentials

slack.setToken "default" "xoxb-your-token" {"defaultChannel": "general"}

2. Send a message to a Slack channel via chat.postMessage

slack.send "default" "#general" "Hello from RobinPath!"

Available Functions

FunctionDescription
slack.setTokenStore a Slack Bot User OAuth Token for a workspace
slack.sendSend a message to a Slack channel via chat.postMessage
slack.sendWebhookSend a message via a Slack Incoming Webhook URL (no token needed)
slack.replyReply to a message thread via chat.postMessage with thread_ts
slack.reactAdd an emoji reaction to a message via reactions.add
slack.uploadUpload a file to a Slack channel using the new file upload API
slack.listChannelsList Slack channels via conversations.list
slack.getHistoryGet message history for a channel via conversations.history
slack.setStatusSet the authenticated user's status via users.profile.set
slack.userInfoGet user information via users.info
slack.createChannelCreate a new Slack channel via conversations.create
slack.updateMessageUpdate an existing message via chat.update

Examples

Send a message to a Slack channel via chat.postMessage

slack.send "default" "#general" "Hello from RobinPath!"

Send a message via a Slack Incoming Webhook URL (no token needed)

slack.sendWebhook "https://hooks.slack.com/services/T.../B.../xxx" "Deploy complete!"

Reply to a message thread via chat.postMessage with thread_ts

slack.reply "default" "C01234" "1234567890.123456" "Got it, thanks!"

Integration with RobinPath

import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/slack";

const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);

const result = await rp.executeScript(`
  slack.setToken "default" "xoxb-your-token" {"defaultChannel": "general"}
  slack.send "default" "#general" "Hello from RobinPath!"
`);

Full API Reference

See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.

License

MIT

Keywords

slack

FAQs

Package last updated on 06 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts