Currently in the process of developing a ticket system using discord.js
Experiencing a challenge where upon a member reacting to the message with a specific emoji, the ticket is supposed to close. However, when running the code, it is throwing an error.
if (reaction.emoji.name == '🔒') {
if(!reaction.channel.name.includes("ticket")) return;
channel.delete()
}