server settings: add action items channels to display

This commit is contained in:
Ayden Jahola 2024-10-29 09:16:17 +00:00
parent 618332cfcd
commit e551656955
No known key found for this signature in database
GPG key ID: 71DD90AE4AE92742

View file

@ -64,6 +64,14 @@ module.exports = {
? serverSettings.emailDomains.join(", ") ? serverSettings.emailDomains.join(", ")
: "None"; : "None";
const actionItemsChannel = interaction.guild.channels.cache.get(
serverSettings.actionItemsChannelId
);
const actionItemsTargetChannel = interaction.guild.channels.cache.get(
serverSettings.actionItemsTargetChannelId
);
const settingsEmbed = new EmbedBuilder() const settingsEmbed = new EmbedBuilder()
.setColor("#0099ff") .setColor("#0099ff")
.setTitle("🌟 Current Server Settings 🌟") .setTitle("🌟 Current Server Settings 🌟")
@ -85,7 +93,19 @@ module.exports = {
value: serverSettings.verifiedRoleName || "None", value: serverSettings.verifiedRoleName || "None",
inline: true, 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() .setTimestamp()
.setFooter({ .setFooter({