Skip to content

braxtongpoll/djs-embed-builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

djs-embed-builder



Usage

const { Client } = require('discord.js');
const djs = require(`djs-embed-builder`);
const client = new Client();
client.embed = new djs(client).createEmbed

client.on("interactionCreate", (client, interaction) => {
    if (interaction.commandName == "embed") {
        client.embed(interaction);
    };
});

client.on("messageCreate", (client, message) => {
    let prefix = "+";
    let args = message.content.slice(prefix.length).trim().split(/ +/g);
    let command = args.shift().toLowerCase();
    if (command == "embed") {
        client.embed(message);
    };
});

Dependencies

Examples

To see examples go to examples.js

It's about 120% easy to use though.

Contact

Read Me Made by IceyyM8

About

A discord JS interactive embed builder.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published