Home > Enterprise >  Discord button only works once discord.js
Discord button only works once discord.js

Time:10-04

I have posted a button but it only works once enter image description here but after that when I use it again

enter image description here

Also

How can I reply to message if I use deferUpdate it shows

Code

client.on('ready', () => {
  client.user.setActivity('people and managing the server', {
    type: 'WATCHING',
  });

  const channel = client.channels.cache.get('894171605608042496');

  const row = new MessageActionRow().addComponents(
    new MessageButton()
      .setCustomId('openTicket')
      .setLabel('Create ticket')
      .setEmoji('           
  • Related