#v2.0.0 - Module 'discord' has no attribute 'Bot'

1 messages · Page 1 of 1 (latest)

median escarp
#

decided to get back into bots after a while.

last did application commands when we still had to manually install them, so much has chanced.

did a fresh reinstall of py-cord, etc, coded a bit, tried to converting my project to slash commands following the first example here:
https://guide.pycord.dev/interactions/application-commands/slash-commands/

bot = discord.Bot(intents=discord.Intents.all())
AttributeError: module 'discord' has no attribute 'Bot'
using version: 2.0.0 (rechecked, uninstalled reinstalled etc)
idea recognizes discord.Bot with code completion, no errors all fine, but when i execute i get this error

Learn all about Slash Commands and how to implement them into your Discord Bot with Pycord!

#

additional info:

client = discord.Client(intents=discord.Intents.all())

@client.command() works
but client doesnt have slash_command (which my ide agrees with)
ashen dirge
#

do you have something else installed?

median escarp
ashen dirge
#

do you? xd

hollow night
#

I assume yes

north night
rich orchid