From a8d88d3b14cff3303936df15ab86768c2112ed2d Mon Sep 17 00:00:00 2001 From: WubzyGD Date: Tue, 21 Dec 2021 21:57:23 -0700 Subject: [PATCH] stoopid errors --- events/guildMemberAdd.js | 2 +- events/guildMemberRemove.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/events/guildMemberAdd.js b/events/guildMemberAdd.js index 0ea20cd..ed610fd 100644 --- a/events/guildMemberAdd.js +++ b/events/guildMemberAdd.js @@ -14,6 +14,6 @@ module.exports = async (client, member) => { && member.guild.channels.cache.get(tg.wch).permissionsFor(client.user.id).has("SEND_MESSAGES") && !client.users.cache.get(member.id).bot ) { - try {member.guild.channels.cache.get(tg.wch).send(await sendResponse(member, member.guild.channels.cache.get(tg.wch), 'xdlol', client, tr.responses.get(tr.bindings.get('welcome'))).catch(() => {}));} catch {} + try {member.guild.channels.cache.get(tg.wch).send(await sendResponse(member, member.guild.channels.cache.get(tg.wch), 'xdlol', client, tr.responses.get(tr.bindings.get('welcome'))).catch(() => {})).catch(() => {});} catch {} } }; \ No newline at end of file diff --git a/events/guildMemberRemove.js b/events/guildMemberRemove.js index 598a359..86f3642 100644 --- a/events/guildMemberRemove.js +++ b/events/guildMemberRemove.js @@ -11,6 +11,6 @@ module.exports = async (client, member) => { && member.guild.channels.cache.get(tg.lch).permissionsFor(client.user.id).has("SEND_MESSAGES") && !client.users.cache.get(member.id).bot ) { - try {member.guild.channels.cache.get(tg.lch).send(await sendResponse(member, member.guild.channels.cache.get(tg.lch).catch(() => {}), 'xdlol', client, tr.responses.get(tr.bindings.get('leave')))).catch(() => {});} catch {} + try {member.guild.channels.cache.get(tg.lch).send(await sendResponse(member, member.guild.channels.cache.get(tg.lch), 'xdlol', client, tr.responses.get(tr.bindings.get('leave'))).catch(() => {})).catch(() => {});} catch {} } }; \ No newline at end of file