Slack v0.13.0 Slack.Sends

Utility functions for sending slack messages

Summary

Functions

Notifies Slack that the current user is typing in channel

Sends text to channel for the given slack connection. channel can be a string in the format of "#CHANNEL_NAME", "@USER_NAME", or any ID that Slack understands

Notifies slack that the current slack user is typing in channel

Sends raw JSON to a given socket

Subscribe to presence notifications for the user IDs in ids

Functions

indicate_typing(channel, slack)

Notifies Slack that the current user is typing in channel.

send_message(text, channel, slack)

Sends text to channel for the given slack connection. channel can be a string in the format of "#CHANNEL_NAME", "@USER_NAME", or any ID that Slack understands.

send_ping(data \\ %{}, slack)

Notifies slack that the current slack user is typing in channel.

send_raw(json, map)

Sends raw JSON to a given socket.

subscribe_presence(ids \\ [], slack)

Subscribe to presence notifications for the user IDs in ids.