struct Discord::Emoji

Defined in:

discordcr/mappings/guild.cr

Constructors

Instance Method Summary

Constructor Detail

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

Instance Method Detail

def animated : Bool #

def animated=(_animated : Bool) #

def id : Snowflake #

def id=(_id : Snowflake) #

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


[View source]
def managed : Bool #

def managed=(_managed : Bool) #

def mention #

Produces a string to mention this emoji in a message


[View source]
def name : String #

def name=(_name : String) #

def require_colons : Bool #

def require_colons=(_require_colons : Bool) #

def roles : Array(Snowflake) #

def roles=(_roles : Array(Snowflake)) #

def to_json(json : JSON::Builder) #