better-object-embed

1.0.0 • Public • Published

Better-object-embed

Better-object-embed is a module that allows you to make embed objects more easily. It is used to transform a builder into an object.Better-object-embed doesn't use discord.js.

Installation

npm i --s better-object-embed

Example

const BetterObjectEmbed = require("better-object-embed") // require better-object-embed.
const Embed = new BetterObjectEmbed()
 
.setTitle("A title")
.setDescription("A beautiful description")
.setColor("RED")
.addField("name","value",inline) //inline must be true or false
.addBlankField()
.setAuthor("name","icon","url")
.attachFiles(file)
.setImage("url")
.setThumbnail("url")
.setFooter("name","icon")
.setTimestamp(Date.now())
message.channel.send({embed: Embed.build})

Readme

Keywords

Package Sidebar

Install

npm i better-object-embed

Weekly Downloads

7

Version

1.0.0

License

ISC

Unpacked Size

4.43 kB

Total Files

4

Last publish

Collaborators

  • shadowv