UNPKG

dbd.js-new

Version:

dbd.js-new - Simplifica la programación de un bot de discord, dbd.js-new es una versión de dbd.js con soporte

32 lines (25 loc) 671 B
const interpreter = require("../interpreter.js"); module.exports = async (client, member, db) => { for (const command of client.leave_commands.array()) { const data = { author: member.user, member: member, guild: member.guild, }; const id = await interpreter( client, data, [], { channel: command.channel, code: command.channel, }, db, true ); const channel = member.guild.channels.cache.get(id); //if (!channel) return console.error(`channel with ID ${id} does not exist`) data.channel = channel; await interpreter(client, data, [], command, db); } };