EmbedBuilder

Functions

Link copied to clipboard
abstract fun addField(name: String, value: CharSequence, inline: Boolean = true): EmbedBuilder

Adds a field to the embed.

Link copied to clipboard
abstract fun build(): Embed

Builds the embed.

Link copied to clipboard
abstract fun setAuthor(name: String, url: URL? = null, iconUrl: URL? = null): EmbedBuilder

Sets the author of the embed.

Link copied to clipboard
abstract fun setColor(color: Color): EmbedBuilder

Sets the color of the embed.

Link copied to clipboard
abstract fun setDescription(description: CharSequence): EmbedBuilder

Sets the description of the embed.

Link copied to clipboard
abstract fun setFooter(text: String, iconUrl: URL): EmbedBuilder

Sets the footer of the embed.

Link copied to clipboard
abstract fun setImage(url: URL): EmbedBuilder

Sets the image of the embed.

Link copied to clipboard
abstract fun setThumbnail(url: URL): EmbedBuilder

Sets the thumbnail of the embed.

Link copied to clipboard
abstract fun setTimestamp(timestamp: TemporalAccessor): EmbedBuilder

Sets the timestamp of the embed.

Link copied to clipboard
abstract fun setTitle(title: String): EmbedBuilder

Sets the title of the embed.

Link copied to clipboard
abstract fun setUrl(url: URL): EmbedBuilder

Sets the url of the embed.