djs-systems
Version:
The simplest way to build complex Discord bots.
30 lines (29 loc) • 867 B
TypeScript
import { EmbedAuthorData, EmbedFooterData, ColorResolvable, APIEmbedField } from 'discord.js';
/**
* This interface can be used to customize embeds in a specific function.
*
* **Documentation Url** of the type: *https://simplyd.js.org/docs/typedef/CustomizableEmbed*
* @returns {CustomizableEmbed}
*
* @example
* simplydjs.someFunction(interaction, {
* embed: {
* title: "Example Embed",
* description: "This is the embed that will be sent by simplydjs",
* color: simplydjs.toRgb('#406DBC')
* }
* })
*
*/
export declare type CustomizableEmbed = {
author?: EmbedAuthorData;
title?: string;
url?: string;
color?: ColorResolvable;
description?: string;
fields?: APIEmbedField[];
thumbnail?: string;
image?: string;
footer?: EmbedFooterData;
timestamp?: Date | number | null;
};