Issue fix with Muted Role check

Fixed the issue to recognize a Muted Role and made changes to ready.js accordingly
This commit is contained in:
SypherRed committed 2022-06-27 19:03:34 +02:00
1 parent 979271cfb5
commit 26e9b56961
2 files changed
+4 -10

No files matched your search

+3 -9
View File
@@ -60,19 +60,13 @@ module.exports = new Command({
ephemeral: true, ephemeral: true,
}); });
} }
if ( if (User.roles.cache.has(supportbot.TicketBlackListRole)) {
User.roles.cache.has(
getRole(supportbot.TicketBlackListRole, interaction.guild).id
)
) {
return interaction.reply({ return interaction.reply({
content: supportbot.TicketBlackListMessage, content: supportbot.TicketBlackListMessage,
ephemeral: true, ephemeral: true,
}) })
} else if (User.roles.cache.has( };
getRole(supportbot.TicketMutedRole, interaction.guild).id if (User.roles.cache.has(supportbot.TicketMutedRole)) {
)
) {
return interaction.reply({ return interaction.reply({
content: supportbot.TicketMutedMessage, content: supportbot.TicketMutedMessage,
ephemeral: true, ephemeral: true,
+1 -1
View File
@@ -81,7 +81,7 @@ module.exports = new Event("ready", async (client, interaction) => {
const roles = [ const roles = [
supportbot.Admin, supportbot.Admin,
supportbot.Staff, supportbot.Staff,
supportbot.TicketBlackListRole, supportbot?.TicketBlackListRole,
supportbot?.TicketMutedRole supportbot?.TicketMutedRole
]; ];