discord-raw-embed

0.2.0 • Public • Published

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 discord-raw-embed@0.1.0")

embed.getEmbed()
/*
{
    "title": "Hello World!"
    "color": 16711935,
    "description": "Unable to find a readme for discord-raw-embed@0.1.0"
}
*/

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i discord-raw-embed

    Weekly Downloads

    3

    Version

    0.2.0

    License

    BSL-1.0

    Unpacked Size

    8.87 kB

    Total Files

    4

    Last publish

    Collaborators

    • sp46