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? #

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

[View source]
def id : Snowflake? #

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

[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? #

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

[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? #

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

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

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

[View source]