diff --git a/Commands/info.js b/Commands/info.js index 51ad789..b97213f 100644 --- a/Commands/info.js +++ b/Commands/info.js @@ -29,7 +29,6 @@ module.exports = new Command({ const InfoEmbed = new Discord.MessageEmbed() .setURL(supportbot.InfoURL) .setTitle(supportbot.InfoTitle) - .setDescription(supportbot.AboutMe) .setColor(supportbot.InfoColour); interaction.reply({ diff --git a/Commands/ticket.js b/Commands/ticket.js index 9be92a9..99cd77a 100644 --- a/Commands/ticket.js +++ b/Commands/ticket.js @@ -60,16 +60,18 @@ 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, - }); - } + }) + }; + if (User.roles.cache.has(supportbot.TicketMutedRole)) { + return interaction.reply({ + content: supportbot.TicketMutedMessage, + ephemeral: true, + }) + }; // Ticket ID let ticketNumberID = await TicketNumberID.pad(); diff --git a/Configs/supportbot.yml b/Configs/supportbot.yml index 3a5b04d..97ef5c2 100644 --- a/Configs/supportbot.yml +++ b/Configs/supportbot.yml @@ -52,6 +52,7 @@ JoinRole: "Member" Staff: "Staff" Admin: "Admin" TicketBlackListRole: "Blacklisted" +TicketMutedRole: "Muted" # ---------------------------- # Join/Leave Configuration @@ -136,6 +137,7 @@ DMTranscripts: true TranscriptTitle: "Ticket Transcript" TicketLog_Title: "Ticket Closed" TicketBlackListMessage: "You are not allowed to open a ticket" +TicketMutedMessage: "You are muted and therefore not allowed to open any tickets" TicketRoleMention: "@here" # To ping a role: <@ROLE_ID> diff --git a/Events/ready.js b/Events/ready.js index 5506bd1..ba4cbda 100644 --- a/Events/ready.js +++ b/Events/ready.js @@ -82,7 +82,8 @@ module.exports = new Event("ready", async (client, interaction) => { const roles = [ supportbot.Admin, supportbot.Staff, - supportbot.TicketBlackListRole, + supportbot?.TicketBlackListRole, + supportbot?.TicketMutedRole ]; supportbot.Departments.forEach((department) => roles.push(department.role));