struct Discord::Embed

Included Modules

Defined in:

discordcr/mappings/channel.cr

Constructors

Instance Method Summary

Constructor Detail

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

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

Instance Method Detail

def author : EmbedAuthor | Nil #

[View source]
def author=(author : EmbedAuthor | Nil) #

[View source]
def color #

[View source]
def colour : UInt32 | Nil #

[View source]
def colour=(colour : UInt32 | Nil) #

[View source]
def description : String | Nil #

[View source]
def description=(description : String | Nil) #

[View source]
def fields : Array(EmbedField) | Nil #

[View source]
def fields=(fields : Array(EmbedField) | Nil) #

[View source]
def footer : EmbedFooter | Nil #

[View source]
def footer=(footer : EmbedFooter | Nil) #

[View source]
def image : EmbedImage | Nil #

[View source]
def image=(image : EmbedImage | Nil) #

[View source]
def provider : EmbedProvider | Nil #

[View source]
def provider=(provider : EmbedProvider | Nil) #

[View source]
def thumbnail : EmbedThumbnail | Nil #

[View source]
def thumbnail=(thumbnail : EmbedThumbnail | Nil) #

[View source]
def timestamp : Time | Nil #

[View source]
def timestamp=(timestamp : Time | Nil) #

[View source]
def title : String | Nil #

[View source]
def title=(title : String | Nil) #

[View source]
def type : String #

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

[View source]
def url : String | Nil #

[View source]
def url=(url : String | Nil) #

[View source]
def video : EmbedVideo | Nil #

[View source]
def video=(video : EmbedVideo | Nil) #

[View source]