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

+1 -1
View File
@@ -31,7 +31,7 @@ module.exports = {
return interaction.send(`You are not allowed to use the bot in this channel.`);
}
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 embed = new MessageEmbed()
.setTitle('Role not found')