reactions

package
v0.0.5-0...-0379fef Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const EmojiSize = 22

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	*gtk.FlowBox
	Reactions map[api.Emoji]*Reaction

	MessageID discord.MessageID
	ChannelID discord.ChannelID
	// contains filtered or unexported fields
}

func NewContainer

func NewContainer(m *discord.Message) *Container

func (*Container) ReactAdd

func (c *Container) ReactAdd(r *gateway.MessageReactionAddEvent)

func (*Container) ReactRemove

func (c *Container) ReactRemove(r *gateway.MessageReactionRemoveEvent)

func (*Container) RemoveAll

func (c *Container) RemoveAll()

RemoveAll removes everything.

func (*Container) RemoveEmoji

func (c *Container) RemoveEmoji(emoji discord.Emoji)

func (*Container) Search

func (c *Container) Search(chID discord.ChannelID, msgID discord.MessageID, emoji api.Emoji) *Reaction

func (*Container) SetState

func (c *Container) SetState(s *ningen.State)

type Reaction

type Reaction struct {
	*gtk.FlowBoxChild
	Button *gtk.ToggleButton
	Emoji  gtk.IWidget // *gtk.Image or *gtk.Label

	String api.Emoji
}

Jump to

Keyboard shortcuts

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