struct Discord::Emoji
- Discord::Emoji
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
Defined in:
discordcr/mappings/guild.crConstructors
Instance Method Summary
- #animated : Bool | Nil
- #animated=(animated : Bool | Nil)
- #id : Snowflake | Nil
- #id=(id : Snowflake | Nil)
-
#image_url(size : Int32 = 128)
Produces a CDN URL to this emoji's image in the given
size
. -
#image_url(format : CDN::CustomEmojiFormat, size : Int32 = 128)
Produces a CDN URL to this emoji's image in the given
format
andsize
ornil
if the emoji has no id. - #managed : Bool | Nil
- #managed=(managed : Bool | Nil)
-
#mention
Produces a string to mention this emoji in a message
- #name : String
- #name=(name : String)
- #require_colons : Bool | Nil
- #require_colons=(require_colons : Bool | Nil)
- #roles : Array(Snowflake) | Nil
- #roles=(roles : Array(Snowflake) | Nil)
Constructor Detail
Instance Method Detail
def 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.
Produces a CDN URL to this emoji's image in the given format
and size
or nil
if the emoji has no id.