Discord::Emoji
Inherits JSON::Serializable / Struct / Value / Object
Constructors
new(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
animated
Sourceanimated=(animated : Bool | Nil)
Sourceid
Sourceid=(id : Snowflake | Nil)
Sourceimage_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.
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.
managed
Sourcemanaged=(managed : Bool | Nil)
Sourcename
Sourcename=(name : String)
Sourcerequire_colons
Sourcerequire_colons=(require_colons : Bool | Nil)
Sourceroles
Sourceroles=(roles : Array(Snowflake) | Nil)
Source