emoji

package
v0.0.0-...-905ac89 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(name string) string

Get returns a random emoji for the type with < > around it, can be with or without colons around it Example: robyulblush => <:robyulblush:327206930437373952>

func GetWithout

func GetWithout(name string) string

GetWithout returns a random emoji for the type without < > around it, can be with or without colons around it Example: robyulblush => :robyulblush:327206930437373952

func Replace

func Replace(input string) string

Replace replaces all :emoji: in a text with their full ID

Types

type Emoji

type Emoji []string

Emoji is a list of emoji strings with helper methods

func (Emoji) Get

func (e Emoji) Get() string

Get returns a random emoji for the type with < > around it Example: <:robyulblush:327206930437373952>

func (Emoji) GetWithout

func (e Emoji) GetWithout() string

GetWithout returns a random emoji for the type without < > around it Example: :robyulblush:327206930437373952

Jump to

Keyboard shortcuts

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