update settings view

This commit is contained in:
SowinskiBraeden committed 2022-08-05 15:40:29 -07:00
1 parent c6ba35796f
commit 9bca803483
1 file changed
+6
+6
View File
@@ -1112,6 +1112,10 @@ module.exports = {
const officerRoleColor = GuildDB.officerRole ? '+ ' : '- ';
const oos = GuildDB.onlyOfficersSearch; // only officers search (oos)
const oosColor = GuildDB.onlyOfficersSearch ? '+ ' : '- ';
const dispatchRole = GuildDB.dispatcherRole ? `\n╚➤ <@&${GuildDB.dispatcherRole}>` : '';
const dispatchRoleColor = GuildDB.dispatcherRole ? `+ ` : '- ';
const dispatchChannel = GuildDB.dispatchChannel ? `\n╚➤ <#${GuildDB.dispatcherRole}>` : '';
const dispatchChannelColor = GuildDB.dispatchChannel ? `+ ` : '- ';
const settingsEmbed = new MessageEmbed()
.setColor(client.config.EmbedColor)
@@ -1127,6 +1131,8 @@ module.exports = {
{ name: 'Has Commercial Role?', value: `\`\`\`diff\n${commercialRoleColor}${client.exists(GuildDB.commercialRole)}\`\`\`${commercialRole}`, inline: true },
{ name: 'Has Officer Role?', value: `\`\`\`diff\n${officerRoleColor}${client.exists(GuildDB.officerRole)}\`\`\`${officerRole}`, inline: true },
{ name: 'Only Officers Search?', value: `\`\`\`diff\n${oosColor}${oos}\`\`\``, inline: true },
{ name: 'Has Disptach Role?', value: `\`\`\`diff\n${dispatchRoleColor}${client.exists(GuildDB.dispatcherRole)}\`\`\`${dispatchRole}`, inline: true },
{ name: 'Has Dispatch Channel?', value: `\`\`\`diff\n${dispatchChannelColor}${client.exists(GuildDB.dispatchChannel)}\`\`\`${dispatchChannel}`, inline: true },
);
return interaction.send({ embeds: [settingsEmbed] });