Skip to main content
Module

x/commandis/mod.ts>EmbedBuilder

Official framework for Corddis lib ( for Deno only )
Latest
class EmbedBuilder
Re-export
import { EmbedBuilder } from "https://deno.land/x/commandis@v0.6.5/mod.ts";

Builder for message embeds.

Constructors

new
EmbedBuilder()

Properties

private
embed: EmbedType

Methods

author(
name: string,
url?: string,
icon_url?: string,
)

Sets a author to an embed.

color(value: (number | string))

Sets color to an embed. Can be in decimal or string hex format

description(value: string)

Sets description to an embed.

end()

Generates an embed.

field(
name: string,
value: string,
inline?,
)

Adds a field to an embed.

image(
url: string,
height?: number,
width?: number,
)

Sets a image to an embed.

thumbnail(
url: string,
height?: number,
width?: number,
)

Sets a thumbnail to an embed.

timestamp(timestamp?: Date)

Sets a timestamp to an embed.

title(value: string)

Sets title to an embed.

url(value: string)

Sets a URL to an embed.