Documentation ¶
Index ¶
- Constants
- type Container
- func (c *Container) ReactAdd(r *gateway.MessageReactionAddEvent)
- func (c *Container) ReactRemove(r *gateway.MessageReactionRemoveEvent)
- func (c *Container) RemoveAll()
- func (c *Container) RemoveEmoji(emoji discord.Emoji)
- func (c *Container) Search(chID discord.ChannelID, msgID discord.MessageID, emoji api.Emoji) *Reaction
- func (c *Container) SetState(s *ningen.State)
- type Reaction
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 (*Container) ReactAdd ¶
func (c *Container) ReactAdd(r *gateway.MessageReactionAddEvent)
func (*Container) ReactRemove ¶
func (c *Container) ReactRemove(r *gateway.MessageReactionRemoveEvent)
func (*Container) RemoveEmoji ¶
type Reaction ¶
type Reaction struct { *gtk.FlowBoxChild Button *gtk.ToggleButton Emoji gtk.IWidget // *gtk.Image or *gtk.Label String api.Emoji }
Click to show internal directories.
Click to hide internal directories.