1.0.1 • Published 9 months ago

easyembeder v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
9 months ago

Getting Started:

1) Run npm i simply-embeder in your terminal or console. Be sure to install the latest version. 2) Create a bot command for your embed.
3) Define the package: const simplyember = require('simply-embeder'); 4) Setup your command:

Setting up your command can be done how you would like, however, you must include the following code:

const embed = simplyembeder('Your embed title (Required)', 'Your embed description (Required)', 'Your embed footer (Not Required)');

Title: Your title should be a STRING (Required)

Description: Your description should be a STRING (Required)

footer: Your footer should be a STRING (Not required)

With the function above in place, a embed will be sent when running the command.

Support:

If you need any support, join this server: https://discord.gg/URSMqFD3Qt


Code Example:

const { SlashCommandBuilder } = require('discord.js'); const simplyembeder = require('simply-embeder');

module.exports = { data: new SlashCommandBuilder() .setName('simply-embeder') .setDescription('Make a embed with simply-embeder'), async execute(interaction) { const embed = simplyembeder({ title: 'Title (Not Required)', description: 'Description (Required)', footer: 'Footer (Not Required)', timestamp: true, author: { name: 'Name (Not Required)', iconURL: 'https://example.com/avatar.png', // Not Required url: 'https://example.com/profile' // Not Required }, // If you don't want the author at all, like you don't have anything in the author setup, you can remove these lines: // author: { // name: 'Name (Not Required)', // iconURL: 'https://example.com/avatar.png', // Not Required // url: 'https://example.com/profile' // Not Required // }

 field1: {
    name: `Testing (Required if you have the field)`,
    value: `Testing Value (Required if you have the field)`,
    inline: true // Not required even if you have the field
  },
  field2: {
    name: 'Testing2 (Required if you have the field)',
    value: `Testing Value2 (Required if you have the field)`,
    inline: true // Not required even if you have the field
  },
  field3: {
    name: 'Testing3 (Required if you have the field)',
    value: `Testing Value3 (Required if you have the field)`,
    inline: true // Not required even if you have the field
  },
  field4: {
    name: 'Testing4 (Required if you have the field)',
    value: `Testing Value4 (Required if you have the field)`,
    inline: true // Not required even if you have the field
  }
});

await interaction.reply({ embeds: [embed] });

}, };

1.0.1

9 months ago

1.0.0

9 months ago