work command + income-role fix

This commit is contained in:
SowinskiBraeden committed 2022-07-27 15:10:28 -07:00
1 parent 5db634f9cd
commit 5f051a15e0
4 files changed
+114 -10

No files matched your search

+2 -2
View File
@@ -46,7 +46,7 @@ module.exports = {
return interaction.send({ embeds: [embed] });
}
const searchIndex = roles.findIndex((role) => role.role==args[0].value);
const searchIndex = GuildDB.incomeRoles.findIndex((role) => role.role==args[0].value);
if (searchIndex == -1) {
let newIncome = {
role: args[0].value,
@@ -79,7 +79,7 @@ module.exports = {
let successEmbed = new MessageEmbed()
.setTitle('Success')
.setDescription(`Set <@&${args[0].value}>'s income to $${args[1].value}`)
.setDescription(`Updated <@&${args[0].value}>'s income to $${args[1].value}`)
.setColor('GREEN');
return interaction.send({ embeds: [successEmbed] });