struct Discord::Emoji
- Discord::Emoji
- Struct
- Value
- Object
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
- #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))
- #to_json(json : JSON::Builder)
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