test
This commit is contained in:
1 file changed
+4
-1
@@ -38,11 +38,14 @@ module.exports = {
|
||||
.setTitle('Factions & Armbands')
|
||||
|
||||
let description = '';
|
||||
|
||||
|
||||
if (GuildDB.usedArmbands.length == 0) {
|
||||
description = '> There are no factions that have claimed armbands.';
|
||||
} else {
|
||||
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}`;
|
||||
else description += `\n> <@&${factionID}> - *${data.armband}*`;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user