hde-discord
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.2 • Public • Published

    HDE Discord

    HDE Discord is a small library that simplify the generation of an embed to add default data that will be already present in the embed when generating it. ⚠️ Only work with Discord.JS library.

    Installation

    Use npm manager to install HDE Discord. Make sure to have discord.js installed too.

    npm install hde-discord

    or

    npm i hde-discord

    Usage

    const Discord = require("discord.js")
    const HDE = require("hde-discord")
    Discord.MessageEmbed = HDE.embed
    
    HDE.setup({
        author: {   // .setAuthor
            title: "",
            url: ""
        },
        title: "",  // .setTitle
        description: "",    // .setDescription
        thumbnail: "",  // .setThumbnail
        color: "",  // .setColor
        timestamp: true,    // or false || .setTimestamp
        image: "",   // .setImage
        footer: {   // .setFooter 
            title: "",
            url: ""
        }
    })

    Remember that define all parameters is optional, you can do :

    HDE.setup({title: "test"})
    

    Contributing

    If there is a problem with the library or you want to contribute the library, send me a DM on Discord to Tsumiki#0001.

    License

    MIT

    Install

    npm i hde-discord

    DownloadsWeekly Downloads

    5

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    5.96 kB

    Total Files

    6

    Last publish

    Collaborators

    • tsumiki_gfx