From c8821e70a2919a2a4d1405936468f1e029fb57c3 Mon Sep 17 00:00:00 2001 From: Braeden Sowinski Date: Thu, 31 Aug 2023 20:02:11 -0700 Subject: [PATCH] fix/admin-claim-armband --- commands/admin.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/admin.js b/commands/admin.js index 3ab2d49..4ee920a 100644 --- a/commands/admin.js +++ b/commands/admin.js @@ -260,7 +260,7 @@ module.exports = { } else if (args[0].name == 'claim-armband') { // Handle invalid roles - if (des) return interaction.send({ embeds: [new EmbedBuilder().setColor(client.config.Colors.Yellow).setDescription('**Notice:**\n> This role has been configured to be excluded to claim an armband.')], flags: (1 << 6) }); + if (GuildDB.excludedRoles.includes(args[0].options[0].value)) return interaction.send({ embeds: [new EmbedBuilder().setColor(client.config.Colors.Yellow).setDescription('**Notice:**\n> This role has been configured to be excluded to claim an armband.')], flags: (1 << 6) }); // If this faction has an existing record in the db if (GuildDB.factionArmbands[args[0].value]) { diff --git a/package.json b/package.json index caf07a0..37c3e78 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dayz-armbands", - "version": "8.10.2", + "version": "8.10.3", "description": "A General Purpose Discord Bot for DayZ Servers.", "main": "index.js", "nodemonConfig": {