Documentation
¶
Index ¶
- func AddReaction(api slack.Client, channel, plugin, reaction, timestamp string)
- func FindChannelByName(api slack.Client, name string) (slack.Channel, error)
- func GetJoinedChannels(api slack.Client) ([]slack.Channel, error)
- func JoinChannelByName(api slack.Client, name string) error
- func PostMessage(api slack.Client, channel, plugin string, options ...slack.MsgOption) (string, string)
- func ThreadReplyOption(threadTS string) slack.MsgOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddReaction ¶
AddReaction adds a reaction to a message and logs any error using zerolog with consistent structured fields.
func FindChannelByName ¶ added in v0.8.0
FindChannelByName searches all conversations for a channel whose NameNormalized matches name, handling pagination internally. Returns the matching channel or an error if not found or if any API call fails.
func GetJoinedChannels ¶ added in v0.8.0
GetJoinedChannels returns all conversations the bot is currently a member of. Pagination is handled internally.
func JoinChannelByName ¶ added in v0.8.0
JoinChannelByName finds the channel with the given name and joins it. Pagination is handled internally. Returns an error if the channel is not found or if any API call fails.
func PostMessage ¶
func PostMessage(api slack.Client, channel, plugin string, options ...slack.MsgOption) (string, string)
PostMessage sends a Slack message to the given channel and logs any error using zerolog with consistent structured fields.
func ThreadReplyOption ¶
ThreadReplyOption returns a slack.MsgOptionTS for threading replies when the given threadTS is non-empty. When threadTS is empty (i.e. the triggering message was not in a thread), a no-op MsgOption is returned so callers can include it unconditionally.
Types ¶
This section is empty.