This commit is contained in:
SowinskiBraeden committed 2023-02-09 16:19:03 -08:00
1 parent 6ce9e972e0
commit ba27ca573f
1 file changed
+4 -1
+4 -1
View File
@@ -38,11 +38,14 @@ module.exports = {
.setTitle('Factions & Armbands') .setTitle('Factions & Armbands')
let description = ''; let description = '';
if (GuildDB.usedArmbands.length == 0) { if (GuildDB.usedArmbands.length == 0) {
description = '> There are no factions that have claimed armbands.'; description = '> There are no factions that have claimed armbands.';
} else { } else {
for (const [factionID, data] of Object.entries(GuildDB.factionArmbands)) { for (const [factionID, data] of Object.entries(GuildDB.factionArmbands)) {
const guild = client.guilds.cache.get(GuildDB.serverID);
const role = guild.roles.cache.find(role => role.id == factionID);
console.log(role);
if (description == "") description += `> <@&${factionID}> - ${data.armband}`; if (description == "") description += `> <@&${factionID}> - ${data.armband}`;
else description += `\n> <@&${factionID}> - *${data.armband}*`; else description += `\n> <@&${factionID}> - *${data.armband}*`;
} }