Class Embed

Represents an embed component

Constructors

Properties

Constructors

  • Parameters

    • name: string

      The name of the embed

    • data: EmbedData

      The data of the embed (builder or raw)

    Returns Embed

    Example

    module.exports.default = new Embed('welcome', {
    color: 0x5865f2,
    title: 'Welcome',
    description: 'Greetings! Welcome to my server.'
    });

    Example

    module.exports.default = new Embed(
    'welcome',
    new EmbedBuilder()
    .setColor(0x5865f2)
    .setTitle('Welcome')
    .setDescription('Greetings! Welcome to my server.')
    );

Properties

data: EmbedData

The data of the embed (builder or raw)

name: string

The name of the embed

Generated using TypeDoc