slack_emoji_imager

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: BSD-3-Clause Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const SlackAPIEndpoint = "https://slack.com/api"

Variables

View Source
var ErrorNoReactions = errors.Errorf("NoReactions")

Functions

This section is empty.

Types

type EmojiList

type EmojiList map[string]string

type Imager

type Imager struct {
	EmojiList EmojiList
	// contains filtered or unexported fields
}

func New

func New(userToken, botToken string) (*Imager, error)

func (*Imager) AddEmoji

func (s *Imager) AddEmoji(name string, uri string)

func (*Imager) GetEmojiURI

func (s *Imager) GetEmojiURI(name string) string

func (*Imager) MakeReactionsImage

func (s *Imager) MakeReactionsImage(channel string, timestamp string) (r io.Reader, err error)

func (*Imager) RemoveEmoji

func (s *Imager) RemoveEmoji(name string)

type MessageReaction

type MessageReaction struct {
	Emoji string
	Num   int
}

Jump to

Keyboard shortcuts

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