Client = discord.client() TypeError: 'module' object is not callable

后端 未结 1 1707
春和景丽
春和景丽 2021-01-27 07:53

Why I am I getting TypeError: \'module\' object is not callable with my code?

import discord
from discord.ext.commands import Bot
from discord.ext i         


        
相关标签:
1条回答
  • 2021-01-27 08:58
    Client = discord.Client() 
    

    Remove this line entirely. You aren't using Client anywhere, and discord.ext.commands.Bot is a subclass of discord.Client, so you can access all of the Client attributes through Bot.

    0 讨论(0)
提交回复
热议问题