title: Discord.js Bot Command Error: Warn Command
body: <p>I am a beginner at Node.js Coding and recently coded my bot on repl.it
  I know that there is something wrong with this code and cannot understand where should I put '{'
  Can you please help me &lt;3
  Here is my code:</p>
  <pre><code>client.on(&quot;message&quot;, async (message) =&gt; {
   if(message.content.startsWith(&quot;!warn&quot;))
   let victim = message.mentions.users.first()
   if(!victim) message.reply(&quot;mention someone to warn.&quot;)
   else {
   let embed = new Discord.MessageEmbed()
   .setTitle(&quot;Warnings&quot;)
   .setDescription(`${victim} got warned by ${message.author}!`)
   .setColor(&quot;GREEN&quot;)
   .setFooter(`Moderator : ${message.author.username}`)
   .setTimestamp()
   
   message.channel.send(embed)
   }
  });
  </code></pre>
  <p>If there are some questions ask it I will really appreciate it if you will help! &lt;3</p>
  <p>Can you please send the final version of this code</p>