title: Discord.js. Embed messages problems
body: <p>When I try this code it doesn't work. What am I doing wrong? Is the code wrong? Please help, I am very new to node.js.</p>
  
  <pre><code> switch(args[0]){
          case 'embed':
              const embed = new Discord.RichEmbed()
              function userInfo(user, msg){
              addField('Player Name', message.author.username);
              msg.channel.sendEmbed(embed);}
              break;
  </code></pre>