struct Discord::Embed
- Discord::Embed
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
Defined in:
discordcr/mappings/channel.crConstructors
- .new(pull : JSON::PullParser)
- .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)
Instance Method Summary
- #author : EmbedAuthor | Nil
- #author=(author : EmbedAuthor | Nil)
- #color
- #colour : UInt32 | Nil
- #colour=(colour : UInt32 | Nil)
- #description : String | Nil
- #description=(description : String | Nil)
- #fields : Array(EmbedField) | Nil
- #fields=(fields : Array(EmbedField) | Nil)
- #footer : EmbedFooter | Nil
- #footer=(footer : EmbedFooter | Nil)
- #image : EmbedImage | Nil
- #image=(image : EmbedImage | Nil)
- #provider : EmbedProvider | Nil
- #provider=(provider : EmbedProvider | Nil)
- #thumbnail : EmbedThumbnail | Nil
- #thumbnail=(thumbnail : EmbedThumbnail | Nil)
- #timestamp : Time | Nil
- #timestamp=(timestamp : Time | Nil)
- #title : String | Nil
- #title=(title : String | Nil)
- #type : String
- #type=(type : String)
- #url : String | Nil
- #url=(url : String | Nil)
- #video : EmbedVideo | Nil
- #video=(video : EmbedVideo | Nil)