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);
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] });
}