struct Discord::Emoji

Included Modules

Defined in:

discordcr/mappings/guild.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def animated : Bool | Nil #

[View source]
def animated=(animated : Bool | Nil) #

[View source]
def id : Snowflake | Nil #

[View source]
def id=(id : Snowflake | Nil) #

[View source]
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.


[View source]
def 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.


[View source]
def managed : Bool | Nil #

[View source]
def managed=(managed : Bool | Nil) #

[View source]
def mention #

Produces a string to mention this emoji in a message


[View source]
def name : String #

[View source]
def name=(name : String) #

[View source]
def require_colons : Bool | Nil #

[View source]
def require_colons=(require_colons : Bool | Nil) #

[View source]
def roles : Array(Snowflake) | Nil #

[View source]
def roles=(roles : Array(Snowflake) | Nil) #

[View source]