From 327351b20bd38af7c569b4ac7eca4212925da4c3 Mon Sep 17 00:00:00 2001 From: Braeden Sowinski Date: Wed, 12 Oct 2022 19:34:21 -0700 Subject: [PATCH] 12.7.14 fix set role_income options and value --- commands/settings.js | 4 ++-- config/config.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/settings.js b/commands/settings.js index 645d522..b923595 100644 --- a/commands/settings.js +++ b/commands/settings.js @@ -199,7 +199,7 @@ module.exports = { value: 120.00, type: 10, min_value: 0.01, - required: false, + required: true, } ] }, @@ -634,7 +634,7 @@ module.exports = { if (err) return client.sendInternalError(err); }); } - let perform = searchIndex = -1 ? 'set' : 'updated'; + const perform = searchIndex == -1 ? 'set' : 'updated'; const successEmbed = new EmbedBuilder() .setDescription(`Successfully ${perform} <@&${roleId}>'s income to $${args[0].options[0].options[1].value}`) diff --git a/config/config.js b/config/config.js index 292645b..6f291b1 100644 --- a/config/config.js +++ b/config/config.js @@ -2,7 +2,7 @@ require('dotenv').config(); module.exports = { Dev: "PROD.", - Version: "12.7.13", + Version: "12.7.14", Admins: ["362791661274660874", "329371697570381824"], // Admins of the bot DefaultPrefix: "?", ServerID: "955668596745461830",