title: How to fix error: module 'discord' has no attribute 'Bot'
body: <p><strong>The Situation:</strong></p>
  <p>I'm trying to make a simple discord bot with pycord, but every time I run the code it gives this error:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;main.py&quot;, line 3, in &lt;module&gt;
      bot = discord.Bot()
  AttributeError: module 'discord' has no attribute 'Bot'
  </code></pre>
  <p><strong>The code:</strong></p>
  <pre class="lang-py prettyprint-override"><code>import discord
  
  bot = discord.Bot()
  
  @bot.slash_command()
  async def test(ctx):
    await ctx.send('Success!')
  
  bot.run('token')
  </code></pre>
  <p><strong>What I have Done:</strong></p>
  <p>I've already checked if I have pycord installed and if my token is correct.</p>