module 'discord' has no attribute 'Bot'
писал я значит бота на pycord(что бы сделать его на слешах.) начал вводить импорты. В итоге: выдает ошибку module 'discord' has no attribute 'Bot'. Что делать?
import discord
bot = discord.Bot()
@bot.event
async def on_ready():
print(f"We have logged in as {bot.user}")
@bot.slash_command()
async def ping(ctx):
await ctx.respond('pong!')