struct Discord::Emoji
- Discord::Emoji
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
Defined in:
discordcr/mappings/guild.crConstructors
Instance Method Summary
- #animated : Bool?
- #animated=(animated : Bool?)
- #id : Snowflake?
- #id=(id : Snowflake?)
-
#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?
- #managed=(managed : Bool?)
-
#mention
Produces a string to mention this emoji in a message
- #name : String
- #name=(name : String)
- #require_colons : Bool?
- #require_colons=(require_colons : Bool?)
- #roles : Array(Snowflake)?
- #roles=(roles : Array(Snowflake)?)
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.