work command + income-role fix
This commit is contained in:
4 files changed
+114
-10
No files matched your search
@@ -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] });
|
||||
|
||||
Reference in new issue
Block a user