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, 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]

Instance Method Detail

def author : EmbedAuthor? #

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

[View source]
def color #

[View source]
def colour : UInt32? #

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

[View source]
def description : String? #

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

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

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

[View source]
def footer : EmbedFooter? #

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

[View source]
def image : EmbedImage? #

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

[View source]
def provider : EmbedProvider? #

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

[View source]
def thumbnail : EmbedThumbnail? #

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

[View source]
def timestamp : Time? #

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

[View source]
def title : String? #

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

[View source]
def type : String #

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

[View source]
def url : String? #

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

[View source]
def video : EmbedVideo? #

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

[View source]