Update ticket.js

This commit is contained in:
1tzEmerald authored and GitHub committed 2024-11-09 02:32:28 +00:00
1 parent dffa5d4161
commit 1bb343e49a
1 file changed
+1 -15
+1 -15
View File
@@ -27,7 +27,7 @@ async function isBlacklisted(userId) {
blacklistData = JSON.parse(fs.readFileSync("./Data/BlacklistedUsers.json", "utf8"));
} catch (error) {
console.error("Error reading BlacklistedUsers.json:", error);
return false; // Assume not blacklisted if there's an error
return false;
}
if (!blacklistData || !Array.isArray(blacklistData.blacklistedUsers)) {
@@ -312,20 +312,6 @@ module.exports = new Command({
});
}
if (User.roles.cache.has(supportbot.Roles.ModRoles.Blacklisted)) {
return interaction.reply({
content: msgconfig.Ticket.Blacklisted,
ephemeral: true,
});
}
if (User.roles.cache.has(supportbot.Roles.ModRoles.Muted)) {
return interaction.reply({
content: msgconfig.Ticket.Muted,
ephemeral: true,
});
}
let ticketNumberID = await TicketNumberID.pad();
const TicketSubject = TicketReason || msgconfig.Ticket.InvalidSubject;