3.0.0 • Published 3 years ago

@gamers-geek/djs-embed-builder v3.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Ce projet est une fork du projet initial de @braxtongpoll/djs-embed-builder

Utilisation

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);
    };
});

Dépendances

Examples

Pour voir des examples, rendez-vous dans le fichier examples.js

Le module est extrêmement simple à utiliser !

Contact

2.1.2

3 years ago

2.1.1

3 years ago

2.0.2

3 years ago

2.0.5

3 years ago

3.0.0

3 years ago

2.0.1

3 years ago

1.2.8

3 years ago