reactions

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package reactions is a lightweight wrapper over the "reactions" methods in Slack's Web API: https://api.slack.com/methods?filter=reactions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	Secrets sdkservices.Secrets
	Scope   string
}

func (API) Add

func (a API) Add(ctx context.Context, args []sdktypes.Value, kwargs map[string]sdktypes.Value) (sdktypes.Value, error)

Add a reaction (emoji) to an item (message).

Based on: https://api.slack.com/methods/reactions.add

Required Slack app scopes:

type AddRequest

type AddRequest struct {
	// Channel where the message to add reaction to was posted. Required.
	Channel string `json:"channel"`
	// Name of the reaction (emoji). Required.
	Name string `json:"name"`
	// Timestamp of the message to add reaction to. Required.
	Timestamp string `json:"timestamp"`
}

https://api.slack.com/methods/reactions.add#args

Jump to

Keyboard shortcuts

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