const Discord = require('discord.js'); module.exports = async(channel, mode, client, options) => { if (!options) {return;} if (options.channel && options.channel.length) {channel = channel.guild.channels.cache.get(options.channel.slice(options.channel.search(/\d/), options.channel.search('>')));} try { if (mode === "welcome") {} else if (mode === "leave") {} else { if (options.embed) { var responseEmbed = new Discord.MessageEmbed().setTitle(options.title).setDescription(options.description); if (options.fieldnames && options.fieldnames.length) {let i; for (i=0;i