test
This commit is contained in:
1 file changed
+4
-1
@@ -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}*`;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user