beta push of muted check

push of a check if author has a muted role on ticket opening, if so, decline the interaction

Also either check for missing role or not
This commit is contained in:
SypherRed committed 2022-06-23 20:58:03 +02:00
1 parent 69f0b00ed3
commit 979271cfb5
3 files changed
+13 -2

No files matched your search

+1
View File
@@ -82,6 +82,7 @@ module.exports = new Event("ready", async (client, interaction) => {
supportbot.Admin,
supportbot.Staff,
supportbot.TicketBlackListRole,
supportbot?.TicketMutedRole
];
supportbot.Departments.forEach((department) => roles.push(department.role));