Documentation
¶
Overview ¶
Package emojis provides an implementation of the im.ponies emoji protocol.
Index ¶
Constants ¶
View Source
const ( RoomEmotesEventType event.Type = "im.ponies.room_emotes" UserEmotesEventType event.Type = "im.ponies.user_emotes" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EmojiMap ¶
EmojiMap is a map (object) of emoji names to emoji objects.
func RoomEmotes ¶
RoomEmotes gets the room's emojis.
type EmojiName ¶
type EmojiName string
EmojiName describes the name of an emoji, which is surrounded by colons, such as ":gnutroll:".
type EmoticonEventData ¶
type EmoticonEventData struct {
Emoticons EmojiMap `json:"emoticons"`
}
EmoticonEventData is a subevent struct that describes part of an emoji event.
type RoomEmotesEvent ¶
type RoomEmotesEvent struct { event.StateEventInfo `json:"-"` EmoticonEventData }
RoomEmotesEvent describes the im.ponies.room_emotes event.
type UserEmotesEvent ¶
type UserEmotesEvent struct { event.EventInfo `json:"-"` EmoticonEventData }
UserEmotesEvent describes the im.ponies.user_emotes event.
Click to show internal directories.
Click to hide internal directories.