reactions

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoggerWithReaction

func LoggerWithReaction(r Reaction, logger log.Logger) log.Logger

LoggerWithReaction wraps a logger with fields from a reactions.Reaction

Types

type Handler

type Handler interface {
	HandleReactionAdd(Reaction) (cmdhandler.Response, error)
	HandleReactionRemove(Reaction) (cmdhandler.Response, error)
}

type Reaction

type Reaction interface {
	UserID() snowflake.Snowflake
	MessageID() snowflake.Snowflake
	ChannelID() snowflake.Snowflake
	GuildID() snowflake.Snowflake
	Emoji() string
	Context() context.Context
}

func NewReaction

func NewReaction(ctx context.Context, uid, mid, cid, gid snowflake.Snowflake, emoji string) Reaction

Jump to

Keyboard shortcuts

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