struct Discord::Embed

Defined in:

discordcr/mappings/channel.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]
def self.new(__temp_155 : 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)) #