discord-raw-embed
v0.2.0
Published
Builder for Discord embed objects
Readme
discord-raw-embed
Utility to build raw embed objects to be used by the Discord API.
Example
const RawEmbed = require("discord-raw-embed")
const embed = new RawEmbed()
embed.setColor(0xff00ff) // Set color to #FF00FF
embed.setTitle("Hello World!")
embed.setDescription("Unable to find a readme for [email protected]")
embed.getEmbed()
/*
{
"title": "Hello World!"
"color": 16711935,
"description": "Unable to find a readme for [email protected]"
}
*/