projectphil_embedbuilder
v1.0.0
Published
A discord.js interactive embed builder for slash commands.
Downloads
5
Maintainers
Readme
This was originally created by PlutoTheDev
This was modified to support DarkBot Multi-Language Functionality
Usage
const language = require('./en-us.json');
const { Client } = require('discord.js');
const djs = require(`hyperz-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, language);
};
});
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, language);
};
});