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