From 3e4188a0c8fb18fb9ef1931246c76553c0edf4b3 Mon Sep 17 00:00:00 2001 From: Cadence Ember Date: Mon, 4 Sep 2023 01:39:45 +1200 Subject: [PATCH] allow all guilds to send events --- d2m/event-dispatcher.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/d2m/event-dispatcher.js b/d2m/event-dispatcher.js index f20d1c7..4b8c691 100644 --- a/d2m/event-dispatcher.js +++ b/d2m/event-dispatcher.js @@ -168,7 +168,6 @@ module.exports = { const channel = client.channels.get(message.channel_id) if (!channel.guild_id) return // Nothing we can do in direct messages. const guild = client.guilds.get(channel.guild_id) - if (!isGuildAllowed(guild.id)) return await sendMessage.sendMessage(message, guild), await discordCommandHandler.execute(message, channel, guild) @@ -195,7 +194,6 @@ module.exports = { const channel = client.channels.get(message.channel_id) if (!channel.guild_id) return // Nothing we can do in direct messages. const guild = client.guilds.get(channel.guild_id) - if (!isGuildAllowed(guild.id)) return await editMessage.editMessage(message, guild) } },