title: JavaScript - Node.js : (DiscordAPI) I can send title of embed in console, but get not as string
body: <pre><code>if(message.channel.id = &quot;798844490525179915&quot;) {
  
      const titel = message.embeds[0].title
      console.log(titel)
      Role1 = message.guild.roles.cache.find(r =&gt; r.name === titel)
  </code></pre>
  <p>(starts at line 211)
  line 214, gives me the right title out in console! but in line 213 I get the error, something went wrong and that my title would be &quot;undefined&quot; `- console puts me out the right answer (in this example &quot;Pro Tournament.&quot;)
  ERROR: <code>TypeError: Cannot read property 'title' of undefined at Client.&lt;anonymous&gt; (D:\Programmieren\nodeJS\EventPlaner\main.js:213:37)</code></p>