update settings view
This commit is contained in:
1 file changed
+6
@@ -1112,6 +1112,10 @@ module.exports = {
|
|||||||
const officerRoleColor = GuildDB.officerRole ? '+ ' : '- ';
|
const officerRoleColor = GuildDB.officerRole ? '+ ' : '- ';
|
||||||
const oos = GuildDB.onlyOfficersSearch; // only officers search (oos)
|
const oos = GuildDB.onlyOfficersSearch; // only officers search (oos)
|
||||||
const oosColor = GuildDB.onlyOfficersSearch ? '+ ' : '- ';
|
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()
|
const settingsEmbed = new MessageEmbed()
|
||||||
.setColor(client.config.EmbedColor)
|
.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 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: '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: '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] });
|
return interaction.send({ embeds: [settingsEmbed] });
|
||||||
|
|||||||
Reference in new issue
Block a user