djs-util-belt

1.0.2 • Public • Published

Basic Discord.js Utility Belt

This is a light-weight utility belt of utils for discord.js v12+

Usage

Join Embed

const utils = require('djs-util-belt');
module.exports = async (client, member) => {
var joinChannel = member.guild.channels.find((channel) => channel.id == "123456789123456");
    let embed = utils.joinEmbed(member);
    joinChannel.send(embed);
};

Leave Embed

const utils = require('djs-util-belt');
module.exports = async (client, member) => {
var leaveChannel = member.guild.channels.find((channel) => channel.id == "123456789123456");
    let embed = utils.leaveEmbed(member);
    leaveChannel.send(embed);
};

Randomizer

const utils = require('djs-util-belt');
module.exports = async () => {
/** 
 * Work In Progress
 */
};

Console Usage (Error, Debug, Warn, Info)

const utils = require('djs-util-belt');
module.exports = async (client, member) => {
    var leaveChannel = member.guild.channels.find((channel) => channel.id == "123456789123456");

    utils.consoleDebug("guildMemberAdd Event", member);
    utils.consoleWarn("guildMemberAdd Event", member);
    utils.consoleInfo("guildMemberAdd Event", member);
    utils.consoleError("guildMemberAdd Event", member);

    let embed = utils.leaveEmbed(member);
    leaveChannel.send(embed);
};

Requirements

This package requires:

discord.js v12+,

fancy-log,

colors

Credits

Creator: CyberCDN

Testers: Not Listed

Package Sidebar

Install

npm i djs-util-belt

Weekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

7.6 kB

Total Files

5

Last publish

Collaborators

  • cybercdn