Skip to main content
Module

x/natico/doc_mod.ts>NaticoEmbed

A powerful and customizable framework for Discordeno
Latest
class NaticoEmbed
Re-export
import { NaticoEmbed } from "https://deno.land/x/natico@4.0.0-pre.4/doc_mod.ts";

Constructors

new
NaticoEmbed(enforceLimits?)

Properties

optional
author: EmbedAuthor
color: number
currentTotal: number

The amount of characters in the embed.

optional
description: string
enforceLimits: boolean

Whether the limits should be enforced or not.

fields: EmbedField[]
optional
file: EmbedFile

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

optional
image: EmbedImage
optional
thumbnail: EmbedImage
optional
timestamp: string
optional
title: string
optional
url: string

Methods

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