From e5516569551916a8cd47f8b887038a63c3c8c9cf Mon Sep 17 00:00:00 2001 From: Ayden Jahola Date: Tue, 29 Oct 2024 09:16:17 +0000 Subject: [PATCH] server settings: add action items channels to display --- commands/moderation/serverSettings.js | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/commands/moderation/serverSettings.js b/commands/moderation/serverSettings.js index 7179756..56d428a 100644 --- a/commands/moderation/serverSettings.js +++ b/commands/moderation/serverSettings.js @@ -64,6 +64,14 @@ module.exports = { ? serverSettings.emailDomains.join(", ") : "None"; + const actionItemsChannel = interaction.guild.channels.cache.get( + serverSettings.actionItemsChannelId + ); + + const actionItemsTargetChannel = interaction.guild.channels.cache.get( + serverSettings.actionItemsTargetChannelId + ); + const settingsEmbed = new EmbedBuilder() .setColor("#0099ff") .setTitle("🌟 Current Server Settings 🌟") @@ -85,7 +93,19 @@ module.exports = { value: serverSettings.verifiedRoleName || "None", inline: true, }, - { name: "📧 Email Domains", value: emailDomains, inline: true } + { name: "📧 Email Domains", value: emailDomains, inline: true }, + { + name: "📋 Action Items Channel", + value: actionItemsChannel ? `<#${actionItemsChannel.id}>` : "None", + inline: true, + }, + { + name: "🎯 Action Items Target Channel", + value: actionItemsTargetChannel + ? `<#${actionItemsTargetChannel.id}>` + : "None", + inline: true, + } ) .setTimestamp() .setFooter({