I have been working on improving my ticket system and got into that 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(`