From 077bb6c1b2fcb6bc284a2fbba455592e64df94c2 Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Sun, 12 Feb 2023 10:57:28 -0500 Subject: [PATCH] Update filter to check for embeds --- modules/functions.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/functions.js b/modules/functions.js index 7c0b95d..74e8c14 100644 --- a/modules/functions.js +++ b/modules/functions.js @@ -531,7 +531,9 @@ const functions = { const guild = await client.guilds.fetch(guildInfo.guildId); // console.log(guildInfo instanceof GuildInfo); const channel = await guild.channels.fetch(guildInfo.watchChannelId); - const filter = message => message.author.id != process.env.BOTID; + const filter = message => { + return message.author.id != process.env.BOTID && message.embeds != undefined; + } const collector = channel.createMessageCollector({ filter }); collector.on('collect', message => { if (message.embeds.length == 0) return;