title: Discord.js UnhandledPromiseRejectionWarning: DiscordAPIError: Cannot send an empty message
body: <p>Ok, so I just started working on a discord bot and implemented a command handler, and I immediately ran into some problems.</p>
  
  <pre><code>const Discord = require("discord.js");
  module.exports = {
    name: "kick",
    description: "Kicks the mentioned user",
    execute(message, args) {
      const user = message.mentions.users.first();
  
      if (user) {
        const member = message.guild.member(user);
        try {
          const kickEmbed = new Discord.RichEmbed()
            .setTitle("You were Kicked")
            .setDescription("You were kicked from Bot Testing Server.");
          user.send({ kickEmbed }).then(() =&gt; {
            member.kick();
          });
        } catch (err) {
          console.log("failed to kick user");
        }
      }
    }
  };
  </code></pre>
  
  <p>when i execute the kick command in my server, I get the following error</p>
  
  <pre><code>UnhandledPromiseRejectionWarning: DiscordAPIError: Cannot send an empty message
  </code></pre>
  
  <p>I can't seem to find anything wrong with the code so, where's the error</p>