DiscordEmbed
public struct DiscordEmbed : Encodable
Represents an embeded entity.
-
Represents an Embed’s author.
See moreDeclaration
Swift
public struct Author : Encodable -
Represents an Embed’s fields.
See moreDeclaration
Swift
public struct Field : Encodable -
Represents an Embed’s footer.
See moreDeclaration
Swift
public struct Footer : Encodable -
Represents an Embed’s image.
See moreDeclaration
Swift
public struct Image : Encodable -
Represents what is providing the content of an embed.
See moreDeclaration
Swift
public struct Provider : Encodable -
Represents the thumbnail of an embed.
See moreDeclaration
Swift
public struct Thumbnail : Encodable -
Represents the video of an embed. Note: Discord does not accept these, so they are read-only
See moreDeclaration
Swift
public struct Video : Encodable
-
The author of this embed.
Declaration
Swift
public var author: Author? -
The color of this embed.
Declaration
Swift
public var color: Int? -
The description of this embed.
Declaration
Swift
public var description: String? -
The footer for this embed.
Declaration
Swift
public var footer: Footer? -
The image for this embed.
Declaration
Swift
public var image: Image? -
The provider of this embed.
Declaration
Swift
public let provider: Provider? -
The thumbnail of this embed.
Declaration
Swift
public var thumbnail: Thumbnail? -
The timestamp of this embed.
Declaration
Swift
public var timestamp: Date? -
The title of this embed.
Declaration
Swift
public var title: String? -
The type of this embed.
Declaration
Swift
public let type: String -
The url of this embed.
Declaration
Swift
public var url: URL? -
The video of this embed. This is read-only, as bots cannot embed videos
Declaration
Swift
public var video: Video? -
The embed’s fields
Declaration
Swift
public var fields: [Field]
-
Creates an Embed object.
Declaration
Parameters
titleThe title of this embed.
descriptionThe description of this embed.
authorThe author of this embed.
urlThe url for this embed, if there is one.
imageThe image for the embed, if there is one.
timestampThe timestamp of this embed, if there is one.
thumbnailThe thumbnail of this embed, if there is one.
colorThe color of this embed.
footerThe footer for this embed, if there is one.
fieldsThe list of fields for this embed, if there are any.
DiscordEmbed Structure Reference