Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeEmojiByID ¶
EncodeEmojiByID - takes an emoji ID and returns the base64 encoded emoji image, used to add emojis. Returns empty string if something fails emojiID: the id of the emoji in question
func EncodeImageEmoji ¶
EncodeImageEmoji - encodes an image link to base64, discord takes base64 to add an emoji so this will return what needs to be given to discord. link: the url that the emoji resides at
Types ¶
type Emoji ¶
Emoji - contains the emojis id and name and if the emoji is animated or not.
func MatchEmojis ¶
MatchEmojis - uses an emoji regex to match all emojis in a message, returns list of Emoji struct. Returns nil if something goes wrong or nothing is found! messageContent: the string that we apply the regex to.