From 56d9cacfbe77afb5252cfa3fd916bb2a80f3afd0 Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Mon, 8 May 2023 09:57:55 -0400 Subject: [PATCH] Change squash type to prevent further execution --- modules/functions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/functions.js b/modules/functions.js index 3ca1955..7c32ae0 100755 --- a/modules/functions.js +++ b/modules/functions.js @@ -729,7 +729,7 @@ const functions = { // Make sure guildInfo is what we expect, the watch channel isnt blank, and notifications are enabled if (guildInfo instanceof GuildInfo && guildInfo.watchChannelId != "" && guildInfo.notificationsEnabled) { // Fetch the Guild - const guild = await client.guilds.fetch(guildInfo.guildId).catch(e => console.error("Attempted to fetch guild I'm no longer in.")); + const guild = await client.guilds.fetch(guildInfo.guildId).catch(e => {throw "Attempted to fetch guild I'm no longer in."}); // Fetch the Channel const channel = await guild.channels.fetch(guildInfo.watchChannelId); // Create the filter function