I'm getting a "AttributeError: module 'discord.ext.commands' has no attribute 'bot" error

Viewed 2981
client = commands.bot(command_prefix = '>', help_command=None)

This is the code where I get the error from. Even if I have a bot.py in discord.ext.commands and I did import commands from discord.ext

from discord.ext import commands
import discord
1 Answers

It's Bot with an uppercase B.

commands.Bot(...)
Related