Slack v0.23.5 Slack.Sends View Source

Utility functions for sending slack messages

Link to this section 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

Link to this section Functions

Link to this function

indicate_typing(channel, slack) View Source

Notifies Slack that the current user is typing in channel.

Link to this function

send_message(text, channel, slack) View Source

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.

NOTE: Referencing "@USER_NAME" is deprecated, and should not be used. For more information see https://api.slack.com/changelog/2017-09-the-one-about-usernames

Link to this function

send_message(text, channel, slack, thread) View Source

Link to this function

send_ping(data \\ %{}, slack) View Source

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

Sends raw JSON to a given socket.

Link to this function

subscribe_presence(ids \\ [], slack) View Source

Subscribe to presence notifications for the user IDs in ids.