Fixed bug

This commit is contained in:
Noah committed 2021-10-27 20:18:06 -05:00
1 parent 8a2059f087
commit 4cb45beded
1 file changed
+3 -4
+3 -4
View File
@@ -64,10 +64,9 @@ module.exports = new Command({
.setColor(supportbot.WarningColour); .setColor(supportbot.WarningColour);
if ( if (
interaction.guild.channels.cache.find( await interaction.guild.channels.cache.find((ticketChannel) => {
(ticketChannel) => ticketChannel.name === `${supportbot.TicketPrefix}${ticketNumberID}`;
ticketChannel.name === `${supportbot.TicketPrefix}${ticketNumberID}` })
)
) { ) {
return interaction.reply({ embeds: [TicketExists] }); return interaction.reply({ embeds: [TicketExists] });
} }