title: Discord.js 12.5.1 MessageEmbed not working
body: <p>I am making a bot to manage my everyday tasks as a fun project. but I am stuck here:</p>
  <pre><code>TypeError: Cannot read property 'MessageEmbed' of undefined
  </code></pre>
  <p>I can't seem to find an answer that fits what I need. Here is my code:</p>
  <pre><code>client.on('message', message =&gt; {
      if (message.content.startsWith('t!test')) {
          const embed = new Discord.MessageEmbed()
      .setTitle(&quot;This is a title&quot;)
      .setDescription(&quot;This is a description&quot;)
      .setTimestamp()
      .setFooter(&quot;This is a footer&quot;)
      .setAuthor(&quot;This is the author's name&quot;)
      .addField(&quot;This is a field&quot;, &quot;this is its description&quot;)
      .setImage(&quot;https://images-ext-2.discordapp.net/external/cC-YBJkH2GXnX7MHMASUM9Gle1S1im3rDJj2K54A28w/%3Fcid%3D73b8f7b19a5ccc575679c0a7fc4a673b753e4ce993f35223%26rid%3Dgiphy.mp4/https/media2.giphy.com/media/Q8bEDnj9hZd6vivXSZ/giphy.mp4&quot;)
      .setThumbnail(&quot;https://images-ext-2.discordapp.net/external/cC-YBJkH2GXnX7MHMASUM9Gle1S1im3rDJj2K54A28w/%3Fcid%3D73b8f7b19a5ccc575679c0a7fc4a673b753e4ce993f35223%26rid%3Dgiphy.mp4/https/media2.giphy.com/media/Q8bEDnj9hZd6vivXSZ/giphy.mp4&quot;)
      message.channel.send(embed)
      }
  });
  </code></pre>
  <p>Any help will be appreciated as I have been stuck on this problem for the pas 3 hours.</p>
  <p>EDIT: I fixed the error! Here is the code for anyone who is having this problem:</p>
  <pre><code>require('dotenv').config();
  const { MessageEmbed, Client } = require('discord.js');
  const Discord = require('discord.js');
  
  const client = new Discord.Client();
  
  client.on('ready', () =&gt; {
      console.log(`Bot logged in as ${client.user.tag}`)
  });
  
  client.on('message', message =&gt; {
      if (message.content.startsWith('t!test')) {
          const embed = new Discord.MessageEmbed()
      .setTitle(&quot;This is a title&quot;)
      .setDescription(&quot;This is a description&quot;)
      .setTimestamp()
      .setFooter(&quot;This is a footer&quot;)
      .setAuthor(&quot;This is the author's name&quot;)
      .addField(&quot;This is a field&quot;, &quot;this is its description&quot;)
      .setImage(&quot;https://images-ext-2.discordapp.net/external/cC-YBJkH2GXnX7MHMASUM9Gle1S1im3rDJj2K54A28w/%3Fcid%3D73b8f7b19a5ccc575679c0a7fc4a673b753e4ce993f35223%26rid%3Dgiphy.mp4/https/media2.giphy.com/media/Q8bEDnj9hZd6vivXSZ/giphy.mp4&quot;)
      .setThumbnail(&quot;https://images-ext-2.discordapp.net/external/cC-YBJkH2GXnX7MHMASUM9Gle1S1im3rDJj2K54A28w/%3Fcid%3D73b8f7b19a5ccc575679c0a7fc4a673b753e4ce993f35223%26rid%3Dgiphy.mp4/https/media2.giphy.com/media/Q8bEDnj9hZd6vivXSZ/giphy.mp4&quot;)
      message.channel.send(embed)
      }
  });
  
  client.login(process.env.token)
  </code></pre>
  <p>(The embed is an example..)</p>