title: this.options.embeds?.map is not a function discord.js
body: <p>Hi I'm trying to get an embed working but it keeps returning with</p>
  <blockquote>
  <p>this.options.embeds?.map is not a function</p>
  </blockquote>
  <p>I've looked online but can't find an answer as most of the solutions are to update node.js of which I have the latest version</p>
  <pre><code>const {
      SlashCommandBuilder
  } = require('@discordjs/builders');
  const {
      MessageEmbed,
      MessageAttachment,
      Message
  } = require('discord.js');
  
  module.exports = {
      data: new SlashCommandBuilder()
          .setName('info')
          .setDescription('Returns info based on input')
          .addSubcommand(subcommand =&gt;
              subcommand
              .setName(&quot;user&quot;)
              .setDescription(&quot;Gets information of a user mentioned&quot;)
              .addUserOption(option =&gt; option.setName(&quot;target&quot;).setDescription(&quot;The user mentioned&quot;)))
          .addSubcommand(subcommand =&gt;
              subcommand
              .setName(&quot;server&quot;)
              .setDescription(&quot;Info about the server&quot;)),
      async execute(interaction, client) {
          if (interaction.options.getSubcommand() === &quot;user&quot;) {
              const user = interaction.options.getUser(&quot;target&quot;);
              if (user) {
                  const file = new MessageAttachment(&quot;./src/images/Bobbys.png&quot;);
                  const userEmbed = new MessageEmbed()
                      .setTitle(`${user.username}`)
                      .setDescription(`A member of the ${user.guildname} server!`)
                      .setAuthor(&quot;Bobby Bot&quot;, client.user.displayAvatarURL())
                      .setThumbnail(client.user.displayAvatarURL())
                      .addFields(
                          { name: &quot;Tag&quot;, value: `&lt;@${user.id}&gt;`, inline: true},
                          { name: &quot;\u200B&quot;, value: &quot;\u200B&quot;, inline: true},
                          { name: &quot;Member Since&quot;, value: `${user.joinedAt}`, inline: true}
                      )
                      .setImage(user.displayAvatarURL)
                      .setTimestamp()
                      .setFooter(client.user.tag, client.user.displayAvatarURL());
                  await interaction.reply({ embeds: userEmbed, files: [file] });
              } else {
                  await interaction.reply(`&lt;@${interaction.user.id}&gt;\nUsername: ${interaction.user.username}\nYour ID: ${interaction.user.id}`);
              }
          } else if (interaction.options.getSubcommand() === &quot;server&quot;) {
              await interaction.reply(`Server Name: ${interaction.guild.name}\nTotal Members: ${interaction.guild.memberCount}`);
          } else {
              await interaction.reply(&quot;No subcommand was used&quot;);
          };
      },
  };
  </code></pre>
  <p>This is my code, but for some reason, it's returning a mapping error even though I'm not using the inbuilt function and is returning this error:</p>
  <pre><code>    TypeError: this.options.embeds?.map is not a function
      at MessagePayload.resolveData (C:\Users\jacob\OneDrive\Desktop\Bobby Bot\node_modules\discord.js\src\structures\MessagePayload.js:184:36)
      at CommandInteraction.reply (C:\Users\jacob\OneDrive\Desktop\Bobby Bot\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:97:50)
      at Object.execute (C:\Users\jacob\OneDrive\Desktop\Bobby Bot\src\commands\Information\info.js:41:35)
      at Object.execute (C:\Users\jacob\OneDrive\Desktop\Bobby Bot\src\events\interactionCreate.js:11:27)
      at Client.&lt;anonymous&gt; (C:\Users\jacob\OneDrive\Desktop\Bobby Bot\src\functions\handleEvents.js:8:58)
      at Client.emit (node:events:394:28)
      at InteractionCreateAction.handle (C:\Users\jacob\OneDrive\Desktop\Bobby Bot\node_modules\discord.js\src\client\actions\InteractionCreate.js:66:12)
      at Object.module.exports [as INTERACTION_CREATE] (C:\Users\jacob\OneDrive\Desktop\Bobby Bot\node_modules\discord.js\src\client\websocket\handlers\INTERACTION_CREATE.js:4:36)
      at WebSocketManager.handlePacket (C:\Users\jacob\OneDrive\Desktop\Bobby Bot\node_modules\discord.js\src\client\websocket\WebSocketManager.js:345:31)
      at WebSocketShard.onPacket (C:\Users\jacob\OneDrive\Desktop\Bobby Bot\node_modules\discord.js\src\client\websocket\WebSocketShard.js:443:22)
  C:\Users\jacob\OneDrive\Desktop\Bobby Bot\node_modules\discord.js\src\rest\RequestHandler.js:298
        throw new DiscordAPIError(data, res.status, request);
              ^
  
  DiscordAPIError: Unknown interaction
      at RequestHandler.execute (C:\Users\jacob\OneDrive\Desktop\Bobby Bot\node_modules\discord.js\src\rest\RequestHandler.js:298:13)
      at processTicksAndRejections (node:internal/process/task_queues:96:5)
      at async RequestHandler.push (C:\Users\jacob\OneDrive\Desktop\Bobby Bot\node_modules\discord.js\src\rest\RequestHandler.js:50:14)
      at async CommandInteraction.reply (C:\Users\jacob\OneDrive\Desktop\Bobby Bot\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:99:5)
      at async Object.execute (C:\Users\jacob\OneDrive\Desktop\Bobby Bot\src\events\interactionCreate.js:14:13) {
    method: 'post',
    path: '/interactions/887347065653452800/aW50ZXJhY3Rpb246ODg3MzQ3MDY1NjUzNDUyODAwOklyMlZNcFFmNndBTnR1c0FYYnp1ZDEyQU1lRVlFMjRWWmxxM3JmZkREY3dlNHcwRUtJcHFoRmFlQW1kRjRPMUtuVFB3Q0JpN0NncU5KaHVnZjRiV0dqQ1BsTlNBdmlXS1ZzOUYwQjN4R3RSUUhGU0RqSnVPNElYdzY2Umx1OWJ3/callback',
    code: 10062,
    httpStatus: 404,
    requestData: {
      json: {
        type: 4,
        data: {
          content: 'There was an error while executing this command!',
          tts: false,
          nonce: undefined,
          embeds: undefined,
          components: undefined,
          username: undefined,
          avatar_url: undefined,
          allowed_mentions: undefined,
          flags: 64,
          message_reference: undefined,
          attachments: undefined,
          sticker_ids: undefined
        }
      },
      files: []
    }
  }
  </code></pre>