Embed

data class Embed(val data: EmbedData, val kord: Kord) : KordObject(source)

An instance of a Discord Embed.

Constructors

Link copied to clipboard
constructor(data: EmbedData, kord: Kord)

Types

Link copied to clipboard
data class Author(val data: EmbedAuthorData, val kord: Kord) : KordObject
Link copied to clipboard
data class Field(val data: EmbedFieldData, val kord: Kord) : KordObject
Link copied to clipboard
data class Footer(val data: EmbedFooterData, val kord: Kord) : KordObject
Link copied to clipboard
data class Image(val data: EmbedImageData, val kord: Kord) : KordObject
Link copied to clipboard
data class Provider(val data: EmbedProviderData, val kord: Kord) : KordObject
Link copied to clipboard
data class Thumbnail(val data: EmbedThumbnailData, val kord: Kord) : KordObject
Link copied to clipboard
data class Video(val data: EmbedVideoData, val kord: Kord) : KordObject

Properties

Link copied to clipboard

The embed author, if present.

Link copied to clipboard
val color: Color?

The color of the embed, if present.

Link copied to clipboard
Link copied to clipboard

The description, if present.

Link copied to clipboard

The embed fields.

Link copied to clipboard

The footer, if present.

Link copied to clipboard

The image, if present.

Link copied to clipboard
open override val kord: Kord

The kord instance that created this object.

Link copied to clipboard

The embed provider, if present.

Link copied to clipboard

The thumbnail, if present.

Link copied to clipboard

The timestamp, if present. Unrelated to the creation time of the embed.

Link copied to clipboard

The title, if present.

Link copied to clipboard

The type of embed, if present. Always Rich for webhook embeds.

Link copied to clipboard
val url: String?

The title url, if present.

Link copied to clipboard

The embedded video, if present.

Functions

Link copied to clipboard
fun apply(builder: EmbedBuilder)

Applies this embed to the builder, copying its properties to it.

Link copied to clipboard
open override fun toString(): String