CustomizableEmbed
Override default embeds with your own customized embed
Types
Object
tip
Converting EmbedBuilder to CustomizableEmbed
This option seems weird and un-intuitive ? Don't worry ! You can change your existing EmbedBuilder to CustomizableEmbed in one line !
const simplydjs = require('simply-djs')
const embed = new EmbedBuilder()
.setTitle("Converting to CustomizableEmbed")
.setColor(simplydjs.toRgb('#406DBC'))
simplydjs.someFunction(interaction, {
embed: embed.toJSON()
})
The .toJSON()
method changes your EmbedBuilder to APIEmbed
which is identical to CustomizableEmbed
Properties
Parameter | Type | Description |
---|---|---|
author | EmbedAuthorData | Sets the author of the embed. |
title | string | Sets the title of the embed. |
url | string | Sets the url of the embed. |
thumbnail | string | Sets the thumbnail of the embed. |
color | ColorResolvable | Sets the color of the embed. |
description | string | Sets the description of the embed. |
fields | APIEmbedField[] | Sets the field of the embed. |
image | string | Sets the image of the embed. |
footer | EmbedFooterData | Sets the footer of the embed. |
timestamp | Date/number | Sets the footer of the embed. |
export interface CustomizableEmbed {
author?: EmbedAuthorData;
title?: string;
url?: string;
thumbnail?: string;
color?: ColorResolvable;
description?: string;
fields?: APIEmbedField[];
image?: string;
footer?: EmbedFooterData;
timestamp?: Date | number | null;
// Removed the credit option
/** credit?: boolean; */
}