Wo soll ich das Passwort einfügen Discord Profilbild ändern mit Token?
import discord
client = discord.Client()
token = "Hier ist mein Token"
@client.event
async def on_ready():
pfp_path = "picture1.png"
with open(pfp_path, 'rb') as fp:
pfp = fp.read()
await client.user.edit(avatar=pfp)
client.run(token, bot=False)
Der Fehler sagt dass ich ein Passwort brauche wo soll ich das passwort einfügen?
Error: Ignoring exception in on_ready
Traceback (most recent call last):
File "C:\Users\pilzt\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\client.py", line 343, in _run_event
await coro(*args, **kwargs)
File "C:\Users\pilzt\Desktop\NewFunction\changepic.py", line 11, in on_ready
await client.user.edit(avatar=pfp)
File "C:\Users\pilzt\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\user.py", line 485, in edit
raise ClientException('Password is required for non-bot accounts.')
discord.errors.ClientException: Password is required for non-bot accounts.
Python,
Python 3,
token,
Discord,
Discord Bot