embedCreator
Lets you create embeds with an interactive builder
Implementation
simplydjs.embedCreator(interaction, {
// options (optional)
})
Output
Types
simplydjs.embedCreator(
msgOrInt: ExtendedMessage | ExtendedInteraction,
options: embedCreatorOptions
): Promise<APIEmbed>
msgOrInt:
ExtendedMessage
|ExtendedInteraction
options:
embedCreatorOptions
Resolves:
APIEmbed
(the embed that the user just built)
Options
embedCreatorOptions
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
strict | boolean | ❌ | false | Enables strict mode in embedCreator |
embed | CustomizableEmbed | ❌ | default embed | Pass 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")
}
})