helpers

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddReaction

func AddReaction(api slack.Client, channel, plugin, reaction, timestamp string)

AddReaction adds a reaction to a message and logs any error using zerolog with consistent structured fields.

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

func ThreadReplyOption(threadTS string) slack.MsgOption

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL