Bunsenbrenner14
Bunsenbrenner14

Reputation: 33

"client = commands.Bot(command_prefix = '.')" "commands" says "not definied"

I'm coding a Discord bot, and this message appeared. I also included all libraries, but it's not working. I don't know what to do. Need help. Any suggestions?

client = discord.Client()
client = commands.Bot(command_prefix = '.')
client.remove_command('help')

Here's the message:

enter image description here

Upvotes: 1

Views: 4491

Answers (1)

An0n1m1ty
An0n1m1ty

Reputation: 468

It seems that you haven't imported a necessary library. Try adding:

from discord.ext import commands

Above those three lines

Upvotes: 1

Related Questions