Add more information on .toggleimages

This commit is contained in:
Wizzard 2024-02-08 20:43:49 -05:00
parent 92b14f21f9
commit 188eb1ef16
1 changed files with 1 additions and 2 deletions

View File

@ -68,10 +68,9 @@ client.on('messageCreate', async message => {
let response = "Image forwarding status for channels:\n"; let response = "Image forwarding status for channels:\n";
Object.keys(channelMappings).forEach(sourceChannelId => { Object.keys(channelMappings).forEach(sourceChannelId => {
if (!sourceChannelId || sourceChannelId === 'undefined') return; if (!sourceChannelId || sourceChannelId === 'undefined') return;
const targetChannelId = channelMappings[sourceChannelId]; const targetChannelId = channelMappings[sourceChannelId];
const status = channelSettings.includeImages[sourceChannelId] ? "Enabled" : "Disabled"; const status = channelSettings.includeImages[sourceChannelId] ? "Enabled" : "Disabled";
response += `- <#${sourceChannelId}> to <#${targetChannelId}>: ${status}\n`; response += `- <#${sourceChannelId}> to <#${targetChannelId}> (${targetChannelId}) : ${status}\n`;
}); });
return message.channel.send(response).then(msg => setTimeout(() => msg.delete(), 10000)); return message.channel.send(response).then(msg => setTimeout(() => msg.delete(), 10000));
} else if (args.length === 2) { } else if (args.length === 2) {