title: How can I DM the user an embed before he is kicked (discord.js)
body: <p>I'm trying to make a blacklist command, and how do I make it so it sends an embed instead of normal message.<br />
  (Also, I'm new to discord.js)</p>
  <p>Here's my script:</p>
  <pre><code>
  module.exports = {
    data: new SlashCommandBuilder()
      .setName('blacklist')
      .setDescription('Blacklist someone from the server')
      .addUserOption((option) =&gt; option.setName('member')
        .setDescription('Who are you blacklisting?')),
    async execute(interaction) {
  
      await interaction.deferReply();
  
  
      const member = interaction.options.getMember('member');
  
  
      if (!interaction.member.roles.cache.some(r =&gt; r.name === &quot;Blacklist perms&quot;)) {
        return interaction.editReply({ content: 'You do not have permission to use this command!' });
      }
  
          member.send(&quot;You have been blacklisted!&quot;)
          member.kick().catch(err =&gt; {
        interaction.editReply({ content: `I do not have enough permissions to do that.`})
      })
  
      await interaction.editReply({ content: `${member} has been succesfully blacklisted!` });
    },
  };```
  </code></pre>