Discord.py Glitch or random error: TypeError: __new__() got an unexpected keyword argument 'deny_new'

后端 未结 5 1794
情歌与酒
情歌与酒 2020-11-30 10:34

Yesterday, my code was perfectly fine. Everything was running... and it was going great. All of a sudden, this error:

TypeError: __new__() got an unexpected k         


        
5条回答
  •  一个人的身影
    2020-11-30 11:12

    I just had this issue and just now fixed it, and here is what I did (this worked for my laptop running Windows):

    pip uninstall discord.py
    pip install discord.py
    py -3 -m pip install -U discord.py
    

    I also am running a discord bot on a Raspberry Pi and this is how I fixed it:

    pip uninstall discord.py
    pip install discord.py
    python3 -m pip install -U discord.py
    

提交回复
热议问题