From 4cb45beded2c10ae09bb378cf4a10a0bbbb866d0 Mon Sep 17 00:00:00 2001 From: Noah Date: Wed, 27 Oct 2021 20:18:06 -0500 Subject: [PATCH] Fixed bug --- Commands/ticket.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Commands/ticket.js b/Commands/ticket.js index fd3f93f..27329fd 100644 --- a/Commands/ticket.js +++ b/Commands/ticket.js @@ -64,10 +64,9 @@ module.exports = new Command({ .setColor(supportbot.WarningColour); if ( - interaction.guild.channels.cache.find( - (ticketChannel) => - ticketChannel.name === `${supportbot.TicketPrefix}${ticketNumberID}` - ) + await interaction.guild.channels.cache.find((ticketChannel) => { + ticketChannel.name === `${supportbot.TicketPrefix}${ticketNumberID}`; + }) ) { return interaction.reply({ embeds: [TicketExists] }); }