Skip to main content
Module

x/discordeno/packages/mod.ts>default

Discord API library for Deno
Latest
class default
extends Array<Embed>
import { default } from "https://deno.land/x/discordeno@18.0.1/packages/mod.ts";

Constructors

new
default(enforceLimits?)

Properties

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)

Get the last DiscordEmbed, if there is no it will create one

setAuthor(
name: string,
iconUrl?: string | User,
url?: string,
)
setColor(color: string)
setDescription(description: string | string[])
setFooter(text: string, icon?: string)
setFromJson(json: Record<string, any>)
setImage(url: string | User)
setThumbnail(url: string)
setTitle(title: string, url?: string)
setURL(url: string)
variable default
import { default } from "https://deno.land/x/discordeno@18.0.1/packages/mod.ts";