aboutsummaryrefslogtreecommitdiff
path: root/174bg
diff options
context:
space:
mode:
Diffstat (limited to '174bg')
-rw-r--r--174bg/discord-bot/main.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/174bg/discord-bot/main.js b/174bg/discord-bot/main.js
index c87f6b3..809664b 100644
--- a/174bg/discord-bot/main.js
+++ b/174bg/discord-bot/main.js
@@ -299,7 +299,7 @@ client.login(process.env.DISCORD_BOT_TOKEN);
function sendMessageToLogsChannel(message) {
const logsChannel = client.channels.cache.find(
- (channel) => channel.name === "logs" && channel.type === 0,
+ (channel) => channel.guild.id === process.env.DISCORD_GUILD_ID && channel.name === "logs" && channel.type === 0,
);
if (!logsChannel) return console.error("Logs channel not found.");