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:
Credits
Creator: CyberCDN
Testers: Not Listed