mirror of
https://github.com/aydenjahola/discord-multipurpose-bot.git
synced 2024-11-21 08:15:55 +00:00
server settings: add action items channels to display
This commit is contained in:
parent
618332cfcd
commit
e551656955
1 changed files with 21 additions and 1 deletions
|
@ -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({
|
||||
|
|
Loading…
Reference in a new issue