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:
1 parent
979271cfb5
commit
26e9b56961
2 files changed
+4
-10
No files matched your search
+3
-9
@@ -60,19 +60,13 @@ module.exports = new Command({
|
||||
ephemeral: true,
|
||||
});
|
||||
}
|
||||
if (
|
||||
User.roles.cache.has(
|
||||
getRole(supportbot.TicketBlackListRole, interaction.guild).id
|
||||
)
|
||||
) {
|
||||
if (User.roles.cache.has(supportbot.TicketBlackListRole)) {
|
||||
return interaction.reply({
|
||||
content: supportbot.TicketBlackListMessage,
|
||||
ephemeral: true,
|
||||
})
|
||||
} else if (User.roles.cache.has(
|
||||
getRole(supportbot.TicketMutedRole, interaction.guild).id
|
||||
)
|
||||
) {
|
||||
};
|
||||
if (User.roles.cache.has(supportbot.TicketMutedRole)) {
|
||||
return interaction.reply({
|
||||
content: supportbot.TicketMutedMessage,
|
||||
ephemeral: true,
|
||||
|
||||
+1
-1
@@ -81,7 +81,7 @@ module.exports = new Event("ready", async (client, interaction) => {
|
||||
const roles = [
|
||||
supportbot.Admin,
|
||||
supportbot.Staff,
|
||||
supportbot.TicketBlackListRole,
|
||||
supportbot?.TicketBlackListRole,
|
||||
supportbot?.TicketMutedRole
|
||||
];
|
||||
|
||||
|
||||
Reference in new issue
Block a user