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