Skip to main content
The Deno 2 Release Candidate is here
Learn more
Go to Latest
class Embeds
extends Array<Embed>
import { Embeds } from "https://deno.land/x/discordeno@13.0.0-rc45/template/bigbot/src/utils/Embeds.ts";

Constructors

new
Embeds(bot: Bot, enforceLimits?)

Properties

bot: Bot
currentTotal: number

The amount of characters in the embed.

enforceLimits: boolean

Whether the limits should be enforced or not.

optional
file: EmbedFile

If a file is attached to the message it will be added here.

Methods

addBlankField(inline?)
addEmbed(embed?: Embed)
addField(
name: string,
value: string,
inline?,
)
attachFile(file: unknown, name: string)
fitData(data: string, max: number)
setAuthor(
name: string,
iconUrl?: string | User,
url?: string,
)
setColor(color: string)
setDescription(description: string | string[])
setFooter(text: string, icon?: string)
setImage(url: string | User)
setThumbnail(url: string)
setTimestamp(time?: number | string)
setTitle(title: string, url?: string)