struct Discord::Embed

Defined in:

discordcr/mappings/channel.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(title : String | Nil = nil, type : String = "rich", description : String | Nil = nil, url : String | Nil = nil, timestamp : Time | Nil = nil, colour : UInt32 | Nil = nil, footer : EmbedFooter | Nil = nil, image : EmbedImage | Nil = nil, thumbnail : EmbedThumbnail | Nil = nil, author : EmbedAuthor | Nil = nil, fields : Array(EmbedField) | Nil = nil) #

[View source]
def self.new(__temp_187 : JSON::PullParser) #

Instance Method Detail

def author : Union(EmbedAuthor, Nil) #

def author=(_author : Union(EmbedAuthor, Nil)) #

def color #

[View source]
def colour : Union(UInt32, Nil) #

def colour=(_colour : Union(UInt32, Nil)) #

def description : Union(String, Nil) #

def description=(_description : Union(String, Nil)) #

def fields : Union(Array(EmbedField), Nil) #

def fields=(_fields : Union(Array(EmbedField), Nil)) #

def footer : Union(EmbedFooter, Nil) #

def footer=(_footer : Union(EmbedFooter, Nil)) #

def image : Union(EmbedImage, Nil) #

def image=(_image : Union(EmbedImage, Nil)) #

def provider : Union(EmbedProvider, Nil) #

def provider=(_provider : Union(EmbedProvider, Nil)) #

def thumbnail : Union(EmbedThumbnail, Nil) #

def thumbnail=(_thumbnail : Union(EmbedThumbnail, Nil)) #

def timestamp : Union(Time, Nil) #

def timestamp=(_timestamp : Union(Time, Nil)) #

def title : Union(String, Nil) #

def title=(_title : Union(String, Nil)) #

def to_json(json : JSON::Builder) #

def type : String #

def type=(_type : String) #

def url : Union(String, Nil) #

def url=(_url : Union(String, Nil)) #

def video : Union(EmbedVideo, Nil) #

def video=(_video : Union(EmbedVideo, Nil)) #