From 92b14f21f9e45c97e515bf0d3a7990ae508f5079 Mon Sep 17 00:00:00 2001 From: Wizzard Date: Thu, 8 Feb 2024 20:41:01 -0500 Subject: [PATCH] Actually show where the messages are being forwarded to in .toggleimages --- main.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.js b/main.js index ee250a0..5fc8fdf 100644 --- a/main.js +++ b/main.js @@ -67,11 +67,11 @@ client.on('messageCreate', async message => { if (args.length === 1) { let response = "Image forwarding status for channels:\n"; Object.keys(channelMappings).forEach(sourceChannelId => { - if (sourceChannelId === 'undefined' || !sourceChannelId) { - return; - } + if (!sourceChannelId || sourceChannelId === 'undefined') return; + + const targetChannelId = channelMappings[sourceChannelId]; const status = channelSettings.includeImages[sourceChannelId] ? "Enabled" : "Disabled"; - response += `- <#${sourceChannelId}> - (${sourceChannelId}): ${status}\n`; + response += `- <#${sourceChannelId}> to <#${targetChannelId}>: ${status}\n`; }); return message.channel.send(response).then(msg => setTimeout(() => msg.delete(), 10000)); } else if (args.length === 2) {