diff --git a/Commands/ticket.js b/Commands/ticket.js index f4a5c9c..99cd77a 100644 --- a/Commands/ticket.js +++ b/Commands/ticket.js @@ -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, diff --git a/Events/ready.js b/Events/ready.js index bf828e3..3a74e7a 100644 --- a/Events/ready.js +++ b/Events/ready.js @@ -81,7 +81,7 @@ module.exports = new Event("ready", async (client, interaction) => { const roles = [ supportbot.Admin, supportbot.Staff, - supportbot.TicketBlackListRole, + supportbot?.TicketBlackListRole, supportbot?.TicketMutedRole ];