Elixir v0.2.1 Nostrum.Struct.Emoji

Struct representing a Discord emoji.

Summary

Types

Custom emoji string to be used with API

Id of the emoji

Name of the emoji

t()

Functions

Formats a custom emoji for use in a Discord message

Types

custom_emoji()
custom_emoji() :: String.t

Custom emoji string to be used with API

Some API endpoints take an emoji. The emoji should be structured as "id:name".

id()
id() :: integer

Id of the emoji

name()
name() :: String.t

Name of the emoji

t()
t() :: %Nostrum.Struct.Emoji{id: id, name: name}

Functions

format_custom_emoji(name, id)
format_custom_emoji(String.t, String.t | integer) :: String.t

Formats a custom emoji for use in a Discord message.