Home > Back-end >  Discord.js: [ object Object ]
Discord.js: [ object Object ]

Time:10-30

I have been working on improving my ticket system and got into that problem: Problem

My code is:

    await button.clicker.fetch();
    if (!button.clicker.member.roles.cache.has("859507507596230736")) return button.reply.send("Only staff can close the ticket.", true)
    var embed = new Discord.MessageEmbed()
    .setTitle("Are you sure?")
    .setDescription("Are you sure you want to close this ticket?\nThis action cannot be undone.")
    .setFooter(button.guild.name)
    .setColor("RED")
    var bu1tton = new MessageButton()
      .setStyle(`red`)
      .setEmoji(`           
  • Related