const Discord = require('discord.js'); const filterResponse = require('./filterresponse'); module.exports = async(member, 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 (options.embed) { var responseEmbed = new Discord.MessageEmbed().setTitle(options.title).setDescription(await filterResponse(member, client, options.description)); if (options.fieldnames && options.fieldnames.length) {let i; for (i=0;i