title: Using destructuring within import statement
body: <p>I have two files- <code>/utils/BroadcasterEmbed.js</code> and <code>/commands/broadcaster.js</code>. Importing <code>BroadcasterEmbed.js</code> to <code>broadcaster.js</code> is the goal. When I test the below code, however, I get the following error <code>TypeError: BroadcasterEmbed is not a constructor</code></p>
  
  <p>I know this is possible considering an open source implementation I came across. Am I missing something?</p>
  
  <p>BroadcasterEmbed.js</p>
  
  <pre><code>const { RichEmbed } = require('discord.js');
  
  module.exports = class BroadcasterEmbed extends RichEmbed {
      constructor(data = {}) {
          super(data);
      }
  }
  </code></pre>
  
  <p>broadcaster.js</p>
  
  <pre><code>const { BroadcasterEmbed } = require('../')
  
  exports.run = (client, message, args) =&gt; {
      ...
  
      message.channel.send(new BroadcasterEmbed().setDescription('hello'));
  
      ...
  }
  </code></pre>