Skip to main content

embedCreator

Lets you create embeds with an interactive builder

Implementation

simplydjs.embedCreator(interaction, { 
// options (optional)
})

Output

embedCreator

Types

simplydjs.embedCreator(
msgOrInt: ExtendedMessage | ExtendedInteraction,
options: embedCreatorOptions
): Promise<APIEmbed>

Options

embedCreatorOptions

ParameterTypeRequiredDefaultDescription
strictbooleanfalseEnables strict mode in embedCreator
embedCustomizableEmbeddefault embedPass a CustomizableEmbed Object to customize the builder embed
export type embedCreatorOptions = {
strict?: boolean;
embed?: CustomizableEmbed;
};

Example

  • Default settings

embedCreator.js
const simplydjs = require('simply-djs')

simplydjs.embedCreator(interaction)
  • Customized with options

embedCreator.js
const simplydjs = require('simply-djs')

simplydjs.embedCreator(interaction, {
strict: true,
embed: {
title: "Embed generator",
description: "Select any option from the Menu to create a custom embed.",
color: simplydjs.toRgb("#406dbc")
}
})