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
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