diff --git a/Commands/add.js b/Commands/add.js index acce3f2..4108225 100644 --- a/Commands/add.js +++ b/Commands/add.js @@ -56,7 +56,7 @@ module.exports = new Command({ if (ticket === -1) { const Exists = new Discord.MessageEmbed() .setTitle("No Ticket Found!") - .setDescription(`${supportbot.NoValidTicket}`) + .setDescription(supportbot.NoValidTicket) .setColor(supportbot.WarningColour); return interaction.reply({ embeds: [Exists] }); } diff --git a/Commands/close.js b/Commands/close.js index 8f6d29a..7f0a9b2 100644 --- a/Commands/close.js +++ b/Commands/close.js @@ -57,7 +57,7 @@ module.exports = new Command({ if (TicketData === -1) { const Exists = new Discord.MessageEmbed() .setTitle("No Ticket Found!") - .setDescription(`${supportbot.NoValidTicket}`) + .setDescription(supportbot.NoValidTicket) .setColor(supportbot.WarningColour); return interaction.followUp({ embeds: [Exists] }); } diff --git a/Commands/remove.js b/Commands/remove.js index 1abf2cf..9f5b732 100644 --- a/Commands/remove.js +++ b/Commands/remove.js @@ -55,7 +55,7 @@ module.exports = new Command({ if (ticket === -1) { const Exists = new Discord.MessageEmbed() .setTitle("No Ticket Found!") - .setDescription(`${supportbot.NoValidTicket}`) + .setDescription(supportbot.NoValidTicket) .setColor(supportbot.WarningColour); return interaction.reply({ embeds: [Exists] }); } diff --git a/Commands/suggest.js b/Commands/suggest.js index e3363c1..381929a 100644 --- a/Commands/suggest.js +++ b/Commands/suggest.js @@ -34,7 +34,7 @@ module.exports = new Command({ const NoChannel = new Discord.MessageEmbed() .setTitle("Missing Channel!") - .setDescription(`${supportbot.InvalidChannel}`) + .setDescription(supportbot.InvalidChannel) .setColor(supportbot.ErrorColour); if (!suggestChannel) return interaction.reply({ embeds: [NoChannel] }); diff --git a/Commands/ticket.js b/Commands/ticket.js index 897650e..a14655f 100644 --- a/Commands/ticket.js +++ b/Commands/ticket.js @@ -80,7 +80,7 @@ module.exports = new Command({ const TicketExists = new MessageEmbed() .setTitle("Ticket Exists!") - .setDescription(`${supportbot.TicketExists}`); + .setDescription(supportbot.TicketExists); if ( await interaction.guild.channels.cache.find( diff --git a/Events/interactionCreate.js b/Events/interactionCreate.js index 49a2ea8..0a20e94 100644 --- a/Events/interactionCreate.js +++ b/Events/interactionCreate.js @@ -67,7 +67,7 @@ module.exports = new Event("interactionCreate", async (client, interaction) => { } } if (interaction.customId === "ticketlock") { - if (interaction.channel.name.startsWith(`${supportbot.TicketPrefix}`)) { + if (interaction.channel.name.startsWith(supportbot.TicketPrefix)) { interaction.message.fetch(); let Admin = interaction.guild.roles.cache.find( @@ -86,10 +86,10 @@ module.exports = new Event("interactionCreate", async (client, interaction) => { let parent = interaction.guild.channels.cache.find( - (c) => c.name === `${supportbot.LockTicketCategory}` + (c) => c.name === supportbot.LockTicketCategory ) || interaction.guild.channels.cache.find( - (c) => c.id === `${supportbot.LockTicketCategory}` + (c) => c.id === supportbot.LockTicketCategory ); if (parent) { await interaction.channel.setParent(parent.id); @@ -121,7 +121,7 @@ module.exports = new Event("interactionCreate", async (client, interaction) => { const ArchiveEmbed = new Discord.MessageEmbed() .setTitle("Archived") .setDescription(`Archived ${interaction.channel.name}`) - .setColor(`${supportbot.SuccessColour}`); + .setColor(supportbot.SuccessColour); interaction.reply({ embeds: [ArchiveEmbed] }); interaction.message.edit({ components: [row] }); diff --git a/Events/ready.js b/Events/ready.js index 12beb16..2777d2c 100644 --- a/Events/ready.js +++ b/Events/ready.js @@ -164,7 +164,7 @@ module.exports = new Event("ready", async (client) => { chan1.messages.fetch(panelid.TicketPanelID).catch(async () => { let embed = new Discord.MessageEmbed() - .setTitle(`${panelconfig.PanelTitle}`) + .setTitle(panelconfig.PanelTitle) .setColor(supportbot.SuccessColour) .setFooter(supportbot.EmbedFooter); @@ -205,7 +205,7 @@ module.exports = new Event("ready", async (client) => { .then((r) => { let data = { id: panelid.id, - TicketPanelID: `${r.id}`, + TicketPanelID: r.id, }; fs.writeFileSync( "./Data/ticket-panel-id.json",