struct

Discord::Emoji

Inherits JSON::Serializable / Struct / Value / Object

Constructors

new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

animated
Source
animated=(animated : Bool | Nil)
Source
id=(id : Snowflake | Nil)
Source
image_url(size : Int32 = 128)

Produces a CDN URL to this emoji's image in the given size. Will return a PNG, or GIF if the emoji is animated.

Source
image_url(format : CDN::CustomEmojiFormat, size : Int32 = 128)

Produces a CDN URL to this emoji's image in the given format and size or nil if the emoji has no id.

Source
managed
Source
managed=(managed : Bool | Nil)
Source
mention

Produces a string to mention this emoji in a message

Source
name
Source
name=(name : String)
Source
require_colons
Source
require_colons=(require_colons : Bool | Nil)
Source
roles
Source
roles=(roles : Array(Snowflake) | Nil)
Source