From c43121d92f6f9c02c5bf83f8d17b53008aafd8e9 Mon Sep 17 00:00:00 2001 From: Braeden Sowinski Date: Sun, 5 Nov 2023 16:51:12 -0800 Subject: [PATCH] fix/emp purchase duration --- commands/purchase-emp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/purchase-emp.js b/commands/purchase-emp.js index 8366bf0..c2c920d 100644 --- a/commands/purchase-emp.js +++ b/commands/purchase-emp.js @@ -34,7 +34,7 @@ module.exports = { run: async (client, interaction, args, { GuildDB }) => { if (client.exists(GuildDB.purchaseEMP) && !GuildDB.purchaseEMP) return interaction.send({ embeds: [new EmbedBuilder().setColor(client.config.Colors.Yellow).setDescription('**Notice:** The admins have disabled this feature')] }); - const duration = args[0].options[0].value; + const duration = args[0].value; let banking = await client.dbo.collection("users").findOne({"user.userID": interaction.member.user.id}).then(banking => banking); if (!banking) {