title: DISCORD JS: Unknown interaction error when command is executed
body: <p>This is a help command which uses menus in discord.js v13. I have this issue when I select a menu. It doesn't show the content of the menu I selected, instead it brings me an error in console saying:</p>
  <p><code>DiscordAPIError: Unknown interaction at RequestHandler.execute (/home/runner/scarlett-stone-1/node_modules/discord.js/src/rest/RequestHandler.js:350:13)</code></p>
  <p>It used to work fine before and I havn't made any changes recently.
  Code below.</p>
  <p>|------------------<code>CODE</code>----------------|</p>
  <pre><code>
  const config = require(&quot;../../botconfig/main&quot;)
  module.exports = {
    name: &quot;help&quot;,
    description: &quot;Shows commands and commands info.&quot;,
  
    run: async (client, message, args) =&gt; {
      const row = new MessageActionRow()
        .addComponents(
          new MessageSelectMenu()
            .setCustomId('select')
            .setPlaceholder('Nothing selected')
  
            .addOptions([
              {
                label: 'Main Menu',
                description: 'Shows the main menu',
                emoji: &quot;909758706290417714&quot;,
                value: '0',
              },
              {
                label: 'Config Commands',
                description: 'Shows all the config commands',
                emoji: &quot;888347974944571392&quot;,
                value: '1',
              },
  
  
              {
                label: 'Economy Commands',
                description: 'Shows all the economy commands',
                emoji: &quot;910512217168941126&quot;,
                value: '2',
              },
  
  
              {
                label: 'Fun Commands',
                description: 'Shows all the fun commands',
                emoji: &quot;920258063703879700&quot;,
                value: '3',
              },
              {
                label: 'Games Commands',
                description: 'Shows all the game commands',
                emoji: &quot;922464211240632330&quot;,
                value: '4',
              },
  
  
              {
                label: 'Information Commands',
                description: 'Shows all the information commands',
                emoji: &quot;911535908518527018&quot;,
                value: '5',
              },
              {
                label: 'Moderation Commands',
                description: 'Shows all the moderation commands',
                emoji: &quot;908346330412355605&quot;,
                value: '6',
              },
              {
                label: 'Utility Commands',
                description: 'Shows all the utility commands',
                emoji: &quot;922461948535271425&quot;,
                value: '7',
              },
              {
                label: 'Owner Commands',
                description: 'This is for the BOT OWNER only',
                emoji: &quot;925024469720915990&quot;,
                value: '8',
              },
            ]),
        );
      const row2 = new MessageActionRow()
        .addComponents(
          new MessageButton()
            .setLabel(&quot;Invite me&quot;)
  
            .setStyle(&quot;LINK&quot;)
            .setEmoji(&quot;909758706290417714&quot;)
            .setURL(&quot;https://discord.com/oauth2/authorize?client_id=879000376274219048&amp;scope=bot&amp;permissions=2684354568&quot;),
          new MessageButton()
            .setLabel(&quot;Support Server&quot;)
  
            .setStyle(&quot;LINK&quot;)
            .setEmoji(&quot;911535908518527018&quot;)
            .setURL(&quot;https://discord.gg/5hphccNxTD&quot;),
          new MessageButton()
            .setLabel(&quot;Upvote me&quot;)
  
            .setStyle(&quot;LINK&quot;)
            .setEmoji(&quot;911545788608430111&quot;)
            .setURL(&quot;https://dblist.ddns.net/bots/like/879000376274219048&quot;)
        )
  
      const embed = new MessageEmbed()
        .setTitle(&quot;**HELP MENU**&quot;)
        .setDescription(`Pls select a category to see more commands.\n\n&gt; \&lt;:57291theqts:925020896840806460&gt; \`\Prefix\`\: ${config.prefix}\n&gt; &lt;:67322theqts:925020897587396638&gt; \`\Total Commands\`\: ${client.commands.size}\n&gt; &lt;:84733theqts:925020897813885019&gt; \`\Total Servers\`\: ${client.guilds.cache.size}\n\n For info on bot commands use \`.cmd &lt;command&gt;\`\n To report bugs, use \`/report\`\nTo make suggestions, use \`/suggest\``)
        .setImage(&quot;https://cdn.discordapp.com/attachments/925026772544782366/925064779289227324/b68f7d0b-903b-42cc-9770-f37e49941bdd-preview.png&quot;)
        .setColor(&quot;#f4c2c2&quot;)
  
  
      let sendmsg = message.channel.send({ embeds: [embed], components: [row, row2] })
  
      let embed1 = new MessageEmbed()
        .setColor('#FFFFFF')
        .setTitle('**HELP MENU**')
        .addFields(
          { name: &quot;**CONFIG COMMANDS**&quot;, value: &quot;`setchatchannel`,`setautorole`, `set-countingchannel`, `setwelcomechannel`, `setleavechannel`&quot; })
        .setImage(&quot;https://cdn.discordapp.com/attachments/925037840977526896/925057005335511101/b68f7d0b-903b-42cc-9770-f37e49941bdd-preview.png&quot;)
        .setColor(&quot;#f4c2c2&quot;)
        .setFooter('Page 1')
  
  
  
      let embed2 = new MessageEmbed()
  
        .setTitle('**Help Menu**')
        .setColor('#FFFFFF')
        .addFields(
          { name: &quot;**ECONOMY COMMANDS**&quot;, value: &quot;`balance`, `deposit`, `withdraw`, `search`, `shop`, `inv`, `pet`, `adopt`, `buy`, `sell`, `use`, `gamble`, `multi`, `beg`, `daily`, `fish`, `hunt`, `rob`, `rich` `postmeme`&quot; })
        .setColor(&quot;#f4c2c2&quot;)
        .setImage(&quot;https://cdn.discordapp.com/attachments/925037840977526896/925057005335511101/b68f7d0b-903b-42cc-9770-f37e49941bdd-preview.png&quot;)
        .setFooter('Page 2')
  
  
  
  
      let embed3 = new MessageEmbed()
        .setTitle('**Help Menu**')
        .setColor('#FFFFFF')
        .addFields(
          { name: &quot;**FUN COMMANDS**&quot;, value: &quot;`8ball`, `activity`, `pixelize`, `meme`, `changemymind`,`clyde`, `slap`, `nitro`, `wasted`, `say`, `quote`, `punch`, `owo`, `lovecalc`, `smug`, `eject`, `emojify`&quot; })
        .setColor(&quot;#f4c2c2&quot;)
        .setImage(&quot;https://cdn.discordapp.com/attachments/925037840977526896/925057005335511101/b68f7d0b-903b-42cc-9770-f37e49941bdd-preview.png&quot;)
        .setFooter('Page 3')
  
      let embed4 = new MessageEmbed()
  
        .setTitle('**Help Menu**')
        .setColor('#FFFFFF')
        .addFields(
          { name: &quot;**GAMES COMMANDS**&quot;, value: &quot;`c4`, `tictactoe`, `roadrace`, `snake`, `football`, `quickclick`, `catchthefish`, `akinator`, `trivia`, &quot; })
        .setImage(&quot;https://cdn.discordapp.com/attachments/925037840977526896/925057005335511101/b68f7d0b-903b-42cc-9770-f37e49941bdd-preview.png&quot;)
        .setColor(&quot;#f4c2c2&quot;)
        .setFooter('Page 4')
  
      let embed5 = new MessageEmbed()
        .setTitle('**Help Menu**')
        .setColor('#FFFFFF')
        .addFields(
          { name: &quot;**INFO COMMANDS**&quot;, value: &quot;`help`, `cmd`, `botinfo`, `ping`, `invite`, `embed`, `ticket-panel`&quot; })
        .setImage(&quot;https://cdn.discordapp.com/attachments/925037840977526896/925057005335511101/b68f7d0b-903b-42cc-9770-f37e49941bdd-preview.png&quot;)
        .setColor(&quot;#f4c2c2&quot;)
        .setFooter('Page 5')
  
      let embed6 = new MessageEmbed()
        .setTitle('**Help Menu**')
        .setColor('#FFFFFF')
        .addFields(
          { name: &quot;**MOD COMMANDS**&quot;, value: &quot;`ban`, `addroleall`, `removeroleall`, `softban`, `purge`, `mute`, `kick`, `tempmute`, `nuke` `stealemoji`, `resetwarns`, `warnings`, `warn`, `rmvwarn`&quot; })
        .setFooter('Page 6')
        .setImage(&quot;https://cdn.discordapp.com/attachments/925037840977526896/925057005335511101/b68f7d0b-903b-42cc-9770-f37e49941bdd-preview.png&quot;)
        .setColor(&quot;#f4c2c2&quot;)
      let embed7 = new MessageEmbed()
        .setTitle('**Help Menu**')
        .setColor('#FFFFFF')
        .addFields({ name: &quot;**UTILITY COMMANDS**&quot;, value: &quot;`addtag`, `edittag`, `removetag`, `afk`, `rolelist`, `snipe`, `timer`, `calculator`, `avatar`, `serverinfo`, `ss`, `dump`&quot; })
        .setImage(&quot;https://cdn.discordapp.com/attachments/925037840977526896/925057005335511101/b68f7d0b-903b-42cc-9770-f37e49941bdd-preview.png&quot;)
        .setColor(&quot;#f4c2c2&quot;)
        .setFooter('Page 7')
      let embed8 = new MessageEmbed()
        .setTitle('**Help Menu**')
        .setColor('#FFFFFF')
        .addFields({ name: &quot;**OWNER COMMANDS**&quot;, value: &quot;`addpremium`, `eval`, `reload`, `remove-premium`, `slt`, `terminal` &quot; })
        .addFields({ name: &quot;**OWNER ECONOMY COMMANDS**&quot;, value: &quot;`addcoins`, `addbank`, `rmvcoins`, `rmvbank`, `resetcoins`, `resetbank`, `deluser`&quot; })
        .setImage(&quot;https://cdn.discordapp.com/attachments/925037840977526896/925057005335511101/b68f7d0b-903b-42cc-9770-f37e49941bdd-preview.png&quot;)
        .setColor(&quot;#f4c2c2&quot;)
        .setFooter('Page 8')
  
      const filter = i =&gt; i.user.id === message.author.id;
      const collector = message.channel.createMessageComponentCollector({
        filter,
        time: 90000,
        componentType: &quot;SELECT_MENU&quot;
      });
  
      collector.on(&quot;collect&quot;, async (collected) =&gt; {
        const value = collected.values[0]
        if (value === &quot;0&quot;) {
          collected.update({ embeds: [embed], components: [row, row2] })
        }
        if (value === &quot;1&quot;) {
          collected.update({ embeds: [embed1], components: [row, row2] })
        }
        if (value === &quot;2&quot;) {
          collected.update({ embeds: [embed2], components: [row, row2] })
        }
        if (value === &quot;3&quot;) {
          collected.update({ embeds: [embed3], components: [row, row2] })
        }
        if (value === &quot;4&quot;) {
          collected.update({ embeds: [embed4], components: [row, row2] })
        }
        if (value === &quot;5&quot;) {
          collected.update({ embeds: [embed5], components: [row, row2] })
        }
        if (value === &quot;6&quot;) {
          collected.update({ embeds: [embed6], components: [row, row2] })
        }
        if (value === &quot;7&quot;) {
          collected.update({ embeds: [embed7], components: [row, row2] })
        }
        if (value === &quot;8&quot;) {
          collected.update({ embeds: [embed8], components: [row, row2] })
        }
  
  
      })
  
  
    }
  }
  </code></pre>