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
title
The title of this embed.
description
The description of this embed.
author
The author of this embed.
url
The url for this embed, if there is one.
image
The image for the embed, if there is one.
timestamp
The timestamp of this embed, if there is one.
thumbnail
The thumbnail of this embed, if there is one.
color
The color of this embed.
footer
The footer for this embed, if there is one.
fields
The list of fields for this embed, if there are any.