Embed
public struct Embed
Embed Type
-
Author dictionary from embed
Declaration
Swift
public var author: [String: Any]? -
Side panel color of embed
Declaration
Swift
public var color: Int? -
Description of the embed
Declaration
Swift
public var description: String? -
Fields for the embed
Declaration
Swift
public var fields: [[String: Any]]? -
Footer dictionary from embed
Declaration
Swift
public var footer: [String: Any]? -
Image data from embed
Declaration
Swift
public var image: [String: Any]? -
Provider from embed
Declaration
Swift
public let provider: [String: Any]? -
Thumbnail data from embed
Declaration
Swift
public var thumbnail: [String: Any]? -
Title of the embed
Declaration
Swift
public var title: String? -
Type of embed
Declaration
Swift
public let type: String -
URL of the embed
Declaration
Swift
public var url: String? -
Video data from embed
Declaration
Swift
public let video: [String: Any]?
-
Creates an Embed Structure
Declaration
Swift
public init() -
Adds a field to the embed
Declaration
Swift
public mutating func addField( _ name: String, value: String, inline: Bool = false ) -
Converts embed to dictionary
Declaration
Swift
public func encode() -> [String: Any]
View on GitHub
Embed Struct Reference