diff --git a/commands/factions.js b/commands/factions.js index fd95e0a..30be8d8 100644 --- a/commands/factions.js +++ b/commands/factions.js @@ -26,12 +26,16 @@ module.exports = { let factions = new EmbedBuilder() .setColor(client.config.Colors.Default) .setTitle('Factions & Armbands') - + let description = ''; - - for (const [factionID, data] of Object.entries(GuildDB.factionArmbands)) { - if (description == "") description += `> <@&${factionID}> - ${data.armband}`; - else description += `\n> <@&${factionID}> - *${data.armband}*`; + + if (GuildDB.usedArmbands.length == 0) { + description = '> There are no factions that have claimed armbands.'; + } else { + for (const [factionID, data] of Object.entries(GuildDB.factionArmbands)) { + if (description == "") description += `> <@&${factionID}> - ${data.armband}`; + else description += `\n> <@&${factionID}> - *${data.armband}*`; + } } factions.setDescription(description); diff --git a/package.json b/package.json index 4767e18..68b90d3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dayz-armbands", - "version": "4.2.0", + "version": "4.2.1", "description": "A Discord Bot to handle DayZ server flags and armbands for in game factions.", "main": "index.js", "nodemonConfig": {