title: Can't import discord.js typescript
body: <p>I'm rewriting a Discord Bot from JS to TS, but I'm facing an issue.</p>
  <p>Writing this doesn't work</p>
  <pre class="lang-js prettyprint-override"><code>import { Message } from 'discord.js';
  </code></pre>
  <p>but this does</p>
  <pre class="lang-js prettyprint-override"><code>const { Message } = require('discord.js'); 
  </code></pre>
  <p>What can be the reason for such a behavior?</p>
  <p>The error is as shown
  <img src="https://i.stack.imgur.com/21OFK.png" alt="screenshot" /></p>