Skip to content

Gamers-geek/djs-embed-builder

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

djs-embed-builder (en Français)


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

Utilisation

const { Client } = require('discord.js');
const djs = require(`@gamers-geek/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

About

A discord JS interactive embed builder.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%