redundancy check
This commit is contained in:
1 file changed
+8
@@ -23,6 +23,7 @@ module.exports = {
|
|||||||
return interaction.send(`You are not allowed to use the bot in this channel.`);
|
return interaction.send(`You are not allowed to use the bot in this channel.`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (GuildDB.incomeRoleStatus) {
|
||||||
let listEmbed = new MessageEmbed()
|
let listEmbed = new MessageEmbed()
|
||||||
.setColor(client.config.EmbedColor)
|
.setColor(client.config.EmbedColor)
|
||||||
.setTitle('List of Work Roles')
|
.setTitle('List of Work Roles')
|
||||||
@@ -36,6 +37,13 @@ module.exports = {
|
|||||||
listEmbed.setDescription(data)
|
listEmbed.setDescription(data)
|
||||||
|
|
||||||
return interaction.send({ embeds: [listEmbed] })
|
return interaction.send({ embeds: [listEmbed] })
|
||||||
|
} else {
|
||||||
|
let noRoles = new MessageEmbed()
|
||||||
|
.setColor(client.config.EmbedColor)
|
||||||
|
.setDescription('**QuarksBot Notice:** There are no income roles')
|
||||||
|
|
||||||
|
return interaction.send({ embeds: [noRoles] });
|
||||||
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user