diff --git a/Commands/ticket.js b/Commands/ticket.js index 5260bd9..ed84267 100644 --- a/Commands/ticket.js +++ b/Commands/ticket.js @@ -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;