Slack.Sends (SlackKit v0.25.0-alpha.0)

View Source

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.

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

send_message(text, channel, slack, thread)

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.